Finalised AI scripts and added in some limitations to mana and hand size, removed auto draw at the end of each turn, as well as reducing mana top-up each round to 1

This commit is contained in:
SHOUTING_PIRATE
2025-04-28 17:25:10 +01:00
parent 11297a3078
commit ab6878fa69
56 changed files with 69508 additions and 5065 deletions

View File

@@ -8,7 +8,7 @@
- Layers:
- Default, TransparentFX, Ignore Raycast, Water, UI, Ground, Placement
- Active game object:
- Name: CardSpawnPoint
- Name: BattleController
- Tag: Untagged
- Layer: Default
<!-- UNITY CODE ASSIST INSTRUCTIONS END -->

View File

@@ -244,6 +244,142 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &106392934
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 106392935}
- component: {fileID: 106392937}
- component: {fileID: 106392936}
m_Layer: 5
m_Name: MaxHandSizeWarning
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!224 &106392935
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 106392934}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 1747056647}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 140}
m_SizeDelta: {x: 1325, y: 113}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &106392936
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 106392934}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: Hand size is full, cannot draw anymore cards
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4278190335
m_fontColor: {r: 1, g: 0, b: 0, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 62.6
m_fontSizeBase: 36
m_fontWeight: 400
m_enableAutoSizing: 1
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_TextWrappingMode: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 0
m_ActiveFontFeatures: 6e72656b
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_EmojiFallbackSupport: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &106392937
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 106392934}
m_CullTransparentMesh: 1
--- !u!1 &258378758
GameObject:
m_ObjectHideFlags: 0
@@ -429,14 +565,15 @@ MonoBehaviour:
m_EditorClassIdentifier:
startingMana: 4
maxMana: 12
playerMana: 0
enemyMana: 0
playerMana: 4
enemyMana: 4
startingCardsAmount: 5
cardsToDrawPerTurn: 2
currentPhase: 0
discardPoint: {fileID: 996899215}
playerHealth: 50
enemyHealth: 50
manaRefillAmount: 1
--- !u!4 &320923692
Transform:
m_ObjectHideFlags: 0
@@ -3309,6 +3446,7 @@ MonoBehaviour:
cardToSpawn: {fileID: 5123884772882841957, guid: 24fd8ad1840ae574ea3eb6ced092e591, type: 3}
drawCardCost: 2
waitBetweenDrawingCards: 0.5
maxHandSize: 7
--- !u!4 &1659412009
Transform:
m_ObjectHideFlags: 0
@@ -3550,6 +3688,7 @@ MonoBehaviour:
playerHealthTxt: {fileID: 565510198}
enemyHealthTxt: {fileID: 769558579}
manaWarning: {fileID: 403163950}
handWarning: {fileID: 106392934}
manaWarningTime: 2
drawCardBtn: {fileID: 2100589756}
endTurnBtn: {fileID: 1625841842}
@@ -3636,6 +3775,7 @@ RectTransform:
- {fileID: 760378391}
- {fileID: 769558578}
- {fileID: 403163953}
- {fileID: 106392935}
- {fileID: 2100589757}
- {fileID: 1625841843}
m_Father: {fileID: 0}
@@ -3834,8 +3974,8 @@ MonoBehaviour:
- {fileID: 11400000, guid: 7e8bb9e0be8b19b4cbc33322e0c68414, type: 2}
cardToSpawn: {fileID: 7608149514179600574, guid: 4aa06ce55518be94b928955dfd8d9c04, type: 3}
cardSpawnPoint: {fileID: 1789455650}
enemyAIType: 0
startHandSize: 0
enemyAIType: 3
startHandSize: 5
--- !u!1 &1895169776
GameObject:
m_ObjectHideFlags: 0

View File

@@ -23,6 +23,8 @@ public class BattleController : MonoBehaviour
public int playerHealth;
public int enemyHealth;
public int manaRefillAmount = 1;
private int currentPlayerMaxMana, currentEnemyMaxMana;
// Start is called once before the first execution of Update after the MonoBehaviour is created
@@ -99,10 +101,14 @@ public class BattleController : MonoBehaviour
UIController.instance.drawCardBtn.SetActive(true);
if (currentPlayerMaxMana < maxMana)
{
currentPlayerMaxMana++;
currentPlayerMaxMana += manaRefillAmount; // Use manaRefillAmount for refill
if (currentPlayerMaxMana > maxMana)
{
currentPlayerMaxMana = maxMana; // Ensure it doesn't exceed maxMana
}
}
FillPlayerMana();
DeckController.instance.DrawMultipleCards(cardsToDrawPerTurn);
//DeckController.instance.DrawMultipleCards(cardsToDrawPerTurn);
break;
case TurnOrder.playerCardAttacks:
CardPointsController.instance.PlayerAttack();
@@ -112,7 +118,11 @@ public class BattleController : MonoBehaviour
//AdvanceTurn();
if (currentEnemyMaxMana < maxMana)
{
currentEnemyMaxMana++;
currentEnemyMaxMana += manaRefillAmount; // Use manaRefillAmount for refill
if (currentEnemyMaxMana > maxMana)
{
currentEnemyMaxMana = maxMana; // Ensure it doesn't exceed maxMana
}
}
FillEnemyMana();
EnemyController.instance.StartAction();

View File

@@ -19,6 +19,8 @@ public class DeckController : MonoBehaviour
public float waitBetweenDrawingCards = .25f;
public int maxHandSize = 7;
private List<CardScriptableObject> activeCards = new List<CardScriptableObject>();
// Start is called once before the first execution of Update after the MonoBehaviour is created
@@ -73,14 +75,23 @@ public class DeckController : MonoBehaviour
public void DrawCardForMana()
{
if (BattleController.instance.playerMana >= drawCardCost)
if (BattleController.instance.playerMana >= drawCardCost && HandController.instance.heldCards.Count < maxHandSize)
{
DrawCardToHand();
BattleController.instance.SpendPlayerMana(drawCardCost);
}
else
{
if(BattleController.instance.playerMana < drawCardCost)
{
UIController.instance.ShowManaWarning();
}
else if (HandController.instance.heldCards.Count >= maxHandSize)
{
UIController.instance.ShowHandSizeWarning();
}
//UIController.instance.ShowManaWarning();
UIController.instance.drawCardBtn.SetActive(false);
}
}

View File

@@ -3,7 +3,7 @@ using System.Collections;
using UnityEngine;
using System;
using Random = UnityEngine.Random;
using System.IO.Compression;
public class EnemyController : MonoBehaviour
{
@@ -50,18 +50,18 @@ public class EnemyController : MonoBehaviour
{
activeCards.Clear();
int interations = 0;
int iterations = 0;
List<CardScriptableObject> tempDeck = new List<CardScriptableObject>();
tempDeck.AddRange(deckToUse);
while (tempDeck.Count > 0 && interations < 500)
while (tempDeck.Count > 0 && iterations < 500)
{
int selected = Random.Range(0, tempDeck.Count);
activeCards.Add(tempDeck[selected]);
tempDeck.RemoveAt(selected);
interations++;
iterations++;
}
}
@@ -78,6 +78,19 @@ public class EnemyController : MonoBehaviour
}
yield return new WaitForSeconds(.5f);
if(enemyAIType != AIType.placeFromDeck)
{
for(int i = 0; i < BattleController.instance.cardsToDrawPerTurn; i++)
{
cardsInHand.Add(activeCards[0]);
activeCards.RemoveAt(0);
if(activeCards.Count == 0)
{
SetUpDeck();
}
}
}
List<CardPlacePoint> cardPoints = new List<CardPlacePoint>();
cardPoints.AddRange(CardPointsController.instance.enemyCardPoints);
@@ -96,7 +109,9 @@ public class EnemyController : MonoBehaviour
}
CardScriptableObject selectedCard = null;
int interations = 0;
int iterations = 0;
List<CardPlacePoint> preferredPoints = new List<CardPlacePoint>();
List<CardPlacePoint> secondaryPoints = new List<CardPlacePoint>();
switch (enemyAIType)
{
@@ -115,12 +130,101 @@ public class EnemyController : MonoBehaviour
break;
case AIType.handRandomPlace:
selectedCard = SelectedCardToPlay();
iterations = 50;
while(selectedCard != null && iterations > 0 && selectedPoint.activeCard == null)
{
PlayCard(selectedCard, selectedPoint);
selectedCard = SelectedCardToPlay();
iterations--;
yield return new WaitForSeconds(CardPointsController.instance.timeBetweenAttacks);
while(selectedPoint.activeCard != null && cardPoints.Count > 0)
{
randomPoint = Random.Range(0, cardPoints.Count);
selectedPoint = cardPoints[randomPoint];
cardPoints.RemoveAt(randomPoint);
}
}
break;
case AIType.handDefensive:
selectedCard = SelectedCardToPlay();
preferredPoints.Clear();
secondaryPoints.Clear();
for(int i = 0; i < cardPoints.Count; i++)
{
if(cardPoints[i].activeCard == null)
{
if(CardPointsController.instance.playerCardPoints[i].activeCard != null)
{
preferredPoints.Add(cardPoints[i]);
}
else
{
secondaryPoints.Add(cardPoints[i]);
}
}
}
iterations = 50;
while(selectedCard != null && iterations > 0 && preferredPoints.Count + secondaryPoints.Count > 0)
{
if(preferredPoints.Count > 0)
{
int selectPoint = Random.Range(0, preferredPoints.Count);
selectedPoint = preferredPoints[selectPoint];
preferredPoints.RemoveAt(selectPoint);
}
else
{
int selectPoint = Random.Range(0, secondaryPoints.Count);
selectedPoint = secondaryPoints[selectPoint];
secondaryPoints.RemoveAt(selectPoint);
}
PlayCard(selectedCard, selectedPoint);
selectedCard = SelectedCardToPlay();
iterations--;
yield return new WaitForSeconds(CardPointsController.instance.timeBetweenAttacks);
}
break;
case AIType.handAttacking:
selectedCard = SelectedCardToPlay();
preferredPoints.Clear();
secondaryPoints.Clear();
for(int i = 0; i < cardPoints.Count; i++)
{
if(cardPoints[i].activeCard == null)
{
if(CardPointsController.instance.playerCardPoints[i].activeCard == null)
{
preferredPoints.Add(cardPoints[i]);
}
else
{
secondaryPoints.Add(cardPoints[i]);
}
}
}
iterations = 50;
while(selectedCard != null && iterations > 0 && preferredPoints.Count + secondaryPoints.Count > 0)
{
if(preferredPoints.Count > 0)
{
int selectPoint = Random.Range(0, preferredPoints.Count);
selectedPoint = preferredPoints[selectPoint];
preferredPoints.RemoveAt(selectPoint);
}
else
{
int selectPoint = Random.Range(0, secondaryPoints.Count);
selectedPoint = secondaryPoints[selectPoint];
secondaryPoints.RemoveAt(selectPoint);
}
PlayCard(selectedCard, selectedPoint);
selectedCard = SelectedCardToPlay();
iterations--;
yield return new WaitForSeconds(CardPointsController.instance.timeBetweenAttacks);
}
break;
}
@@ -138,10 +242,10 @@ public class EnemyController : MonoBehaviour
{
SetUpDeck();
}
}
cardsInHand.Add(activeCards[0]);
activeCards.RemoveAt(0);
}
}
public void PlayCard(CardScriptableObject cardSO, CardPlacePoint placePoint)
{
@@ -154,5 +258,27 @@ public class EnemyController : MonoBehaviour
cardsInHand.Remove(cardSO);
BattleController.instance.SpendEnemyMana(cardSO.manaCost);
}
CardScriptableObject SelectedCardToPlay()
{
CardScriptableObject cardToPlay = null;
List<CardScriptableObject> cardsToPlay = new List<CardScriptableObject>();
foreach(CardScriptableObject card in cardsInHand)
{
if(card.manaCost <= BattleController.instance.enemyMana)
{
cardsToPlay.Add(card);
}
}
if(cardsToPlay.Count > 0)
{
int selected = Random.Range(0, cardsToPlay.Count);
cardToPlay = cardsToPlay[selected];
}
return cardToPlay;
}
}

View File

@@ -14,6 +14,8 @@ public class UIController : MonoBehaviour
public TMP_Text playerManaTxt, playerHealthTxt, enemyHealthTxt;
public GameObject manaWarning;
public GameObject handWarning;
public float manaWarningTime;
public GameObject drawCardBtn, endTurnBtn;
@@ -38,6 +40,7 @@ public class UIController : MonoBehaviour
if(manaWarningCounter <= 0)
{
manaWarning.SetActive(false);
handWarning.SetActive(false);
}
}
}
@@ -63,6 +66,12 @@ public class UIController : MonoBehaviour
manaWarningCounter = manaWarningTime;
}
public void ShowHandSizeWarning()
{
handWarning.SetActive(true);
manaWarningCounter = manaWarningTime;
}
public void DrawCard()
{
DeckController.instance.DrawCardForMana();

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 554 B

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -26,17 +26,53 @@ MonoBehaviour:
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-playerCardPoints__unity-vertical-collection-scroll-view__Slider__UnityEngine.UIElements.Scroller+ScrollerSlider
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-enemyCardPoints__UnityEngine.UIElements.ListView
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-enemyCardPoints__unity-vertical-collection-scroll-view__Slider__UnityEngine.UIElements.Scroller+ScrollerSlider
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-cardsInHand__UnityEngine.UIElements.ListView
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-cardsInHand__unity-vertical-collection-scroll-view__Slider__UnityEngine.UIElements.Scroller+ScrollerSlider
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-m_Materials__UnityEngine.UIElements.ListView
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-m_Materials__unity-vertical-collection-scroll-view__Slider__UnityEngine.UIElements.Scroller+ScrollerSlider
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-m_ValidKeywords__UnityEngine.UIElements.ListView
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-m_ValidKeywords__unity-vertical-collection-scroll-view__Slider__UnityEngine.UIElements.Scroller+ScrollerSlider
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-m_InvalidKeywords__UnityEngine.UIElements.ListView
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-m_InvalidKeywords__unity-vertical-collection-scroll-view__Slider__UnityEngine.UIElements.Scroller+ScrollerSlider
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-stringTagMap__UnityEngine.UIElements.ListView
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-stringTagMap__unity-vertical-collection-scroll-view__Slider__UnityEngine.UIElements.Scroller+ScrollerSlider
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-disabledShaderPasses__UnityEngine.UIElements.ListView
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-disabledShaderPasses__unity-vertical-collection-scroll-view__Slider__UnityEngine.UIElements.Scroller+ScrollerSlider
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-m_BuildTextureStacks__UnityEngine.UIElements.ListView
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-m_BuildTextureStacks__unity-vertical-collection-scroll-view__Slider__UnityEngine.UIElements.Scroller+ScrollerSlider
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-sections__UnityEngine.UIElements.ListView
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-sections__unity-vertical-collection-scroll-view__Slider__UnityEngine.UIElements.Scroller+ScrollerSlider
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-m_Colliders__UnityEngine.UIElements.ListView
- __PanelContainer__rootVisualContainer__inspector-window-main-scroll-view__unity-list-m_Colliders__unity-vertical-collection-scroll-view__Slider__UnityEngine.UIElements.Scroller+ScrollerSlider
m_Values:
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{"m_ShowAlternatingRowBackgrounds":0,"serializedVirtualizationData":{"scrollOffset":{"x":0.0,"y":0.0},"firstVisibleIndex":0,"contentPadding":0.0,"contentHeight":0.0,"anchoredItemIndex":0,"anchorOffset":0.0},"m_SelectedIds":[]}'
- '{"m_Value":0.0,"m_LowValue":0.0,"m_HighValue":2147483648.0}'
- '{"m_ShowAlternatingRowBackgrounds":0,"serializedVirtualizationData":{"scrollOffset":{"x":0.0,"y":0.0},"firstVisibleIndex":0,"contentPadding":0.0,"contentHeight":110.0,"anchoredItemIndex":0,"anchorOffset":0.0},"m_SelectedIds":[]}'
- '{"m_ShowAlternatingRowBackgrounds":0,"serializedVirtualizationData":{"scrollOffset":{"x":0.0,"y":0.0},"firstVisibleIndex":0,"contentPadding":0.0,"contentHeight":66.0,"anchoredItemIndex":0,"anchorOffset":0.0},"m_SelectedIds":[]}'
- '{"m_Value":0.0,"m_LowValue":0.0,"m_HighValue":0.0}'
- '{"m_ShowAlternatingRowBackgrounds":0,"serializedVirtualizationData":{"scrollOffset":{"x":0.0,"y":0.0},"firstVisibleIndex":0,"contentPadding":0.0,"contentHeight":0.0,"anchoredItemIndex":-1,"anchorOffset":0.0},"m_SelectedIds":[]}'
- '{"m_Value":0.0,"m_LowValue":0.0,"m_HighValue":0.0}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'
- '{}'

Binary file not shown.

Binary file not shown.

View File

@@ -1 +1 @@
17788
25268

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,12 +1,6 @@
Base path: 'C:/Unity/Hub/Editor/6000.0.42f1/Editor/Data', plugins path 'C:/Unity/Hub/Editor/6000.0.42f1/Editor/Data/PlaybackEngines'
Cmd: initializeCompiler
Cmd: compileSnippet
insize=826 file=Packages/com.unity.render-pipelines.universal/Shaders/Utils/CopyDepth.shader name=Hidden/Universal Render Pipeline/CopyDepth pass=CopyDepth ppOnly=0 stripLineD=0 buildPlatform=19 rsLen=0 pKW=UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR UNITY_PLATFORM_SUPPORTS_DEPTH_FETCH uKW=_OUTPUT_DEPTH dKW=_DEPTH_MSAA_2 _DEPTH_MSAA_4 _DEPTH_MSAA_8 UNITY_NO_DXT5nm UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_VIRTUAL_TEXTURING UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_ASTC_NORMALMAP_ENCODING SHADER_API_GLES30 UNITY_UNIFIED_SHADER_PRECISION_MODEL flags=0 lang=3 type=Vertex platform=d3d11 reqs=33 mask=6 start=15 ok=1 outsize=582
Cmd: compileSnippet
insize=826 file=Packages/com.unity.render-pipelines.universal/Shaders/Utils/CopyDepth.shader name=Hidden/Universal Render Pipeline/CopyDepth pass=CopyDepth ppOnly=0 stripLineD=0 buildPlatform=19 rsLen=0 pKW=UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR UNITY_PLATFORM_SUPPORTS_DEPTH_FETCH uKW=_OUTPUT_DEPTH dKW=_DEPTH_MSAA_2 _DEPTH_MSAA_4 _DEPTH_MSAA_8 UNITY_NO_DXT5nm UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_VIRTUAL_TEXTURING UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_ASTC_NORMALMAP_ENCODING SHADER_API_GLES30 UNITY_UNIFIED_SHADER_PRECISION_MODEL flags=0 lang=3 type=Fragment platform=d3d11 reqs=33 mask=6 start=15 ok=1 outsize=378
Unhandled exception: Protocol error - failed to read magic number. Error code 0x80000004 (Not connected). (transferred 0/4)
Quitting shader compiler process

View File

@@ -1,12 +1,6 @@
Base path: 'C:/Unity/Hub/Editor/6000.0.42f1/Editor/Data', plugins path 'C:/Unity/Hub/Editor/6000.0.42f1/Editor/Data/PlaybackEngines'
Cmd: initializeCompiler
Cmd: compileSnippet
insize=826 file=Packages/com.unity.render-pipelines.universal/Shaders/Utils/CopyDepth.shader name=Hidden/Universal Render Pipeline/CopyDepth pass=CopyDepth ppOnly=0 stripLineD=0 buildPlatform=19 rsLen=0 pKW=UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR UNITY_PLATFORM_SUPPORTS_DEPTH_FETCH uKW=_OUTPUT_DEPTH dKW=_DEPTH_MSAA_2 _DEPTH_MSAA_4 _DEPTH_MSAA_8 UNITY_NO_DXT5nm UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_VIRTUAL_TEXTURING UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_ASTC_NORMALMAP_ENCODING SHADER_API_GLES30 UNITY_UNIFIED_SHADER_PRECISION_MODEL flags=0 lang=3 type=Vertex platform=d3d11 reqs=33 mask=6 start=15 ok=1 outsize=582
Cmd: compileSnippet
insize=826 file=Packages/com.unity.render-pipelines.universal/Shaders/Utils/CopyDepth.shader name=Hidden/Universal Render Pipeline/CopyDepth pass=CopyDepth ppOnly=0 stripLineD=0 buildPlatform=19 rsLen=0 pKW=UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR UNITY_PLATFORM_SUPPORTS_DEPTH_FETCH uKW=_OUTPUT_DEPTH dKW=_DEPTH_MSAA_2 _DEPTH_MSAA_4 _DEPTH_MSAA_8 UNITY_NO_DXT5nm UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_VIRTUAL_TEXTURING UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_ASTC_NORMALMAP_ENCODING SHADER_API_GLES30 UNITY_UNIFIED_SHADER_PRECISION_MODEL flags=0 lang=3 type=Fragment platform=d3d11 reqs=33 mask=6 start=15 ok=1 outsize=378
Unhandled exception: Protocol error - failed to read magic number. Error code 0x80000004 (Not connected). (transferred 0/4)
Quitting shader compiler process

View File

@@ -1,7 +0,0 @@
Base path: 'C:/Unity/Hub/Editor/6000.0.42f1/Editor/Data', plugins path 'C:/Unity/Hub/Editor/6000.0.42f1/Editor/Data/PlaybackEngines'
Cmd: initializeCompiler
Cmd: compileSnippet
insize=10125 file=Assets/_Udemy Card Battler Assets/Card Model/Holographic Card Shader/Holofoil.shadergraph name=Shader Graphs/Holofoil pass=SceneSelectionPass ppOnly=0 stripLineD=0 buildPlatform=19 rsLen=0 pKW=UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR UNITY_PLATFORM_SUPPORTS_DEPTH_FETCH uKW= dKW=DOTS_INSTANCING_ON UNITY_NO_DXT5nm UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_VIRTUAL_TEXTURING UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_ASTC_NORMALMAP_ENCODING SHADER_API_GLES30 UNITY_UNIFIED_SHADER_PRECISION_MODEL flags=0 lang=3 type=Vertex platform=d3d11 reqs=1 mask=6 start=2349 ok=1 outsize=622
Cmd: shutdown

View File

@@ -1,7 +0,0 @@
Base path: 'C:/Unity/Hub/Editor/6000.0.42f1/Editor/Data', plugins path 'C:/Unity/Hub/Editor/6000.0.42f1/Editor/Data/PlaybackEngines'
Cmd: initializeCompiler
Cmd: compileSnippet
insize=10125 file=Assets/_Udemy Card Battler Assets/Card Model/Holographic Card Shader/Holofoil.shadergraph name=Shader Graphs/Holofoil pass=SceneSelectionPass ppOnly=0 stripLineD=0 buildPlatform=19 rsLen=0 pKW=UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR UNITY_PLATFORM_SUPPORTS_DEPTH_FETCH uKW= dKW=DOTS_INSTANCING_ON UNITY_NO_DXT5nm UNITY_FRAMEBUFFER_FETCH_AVAILABLE UNITY_METAL_SHADOWS_USE_POINT_FILTERING UNITY_NO_SCREENSPACE_SHADOWS UNITY_PBS_USE_BRDF2 UNITY_PBS_USE_BRDF3 UNITY_HARDWARE_TIER1 UNITY_HARDWARE_TIER2 UNITY_HARDWARE_TIER3 UNITY_COLORSPACE_GAMMA UNITY_LIGHTMAP_DLDR_ENCODING UNITY_LIGHTMAP_RGBM_ENCODING UNITY_VIRTUAL_TEXTURING UNITY_PRETRANSFORM_TO_DISPLAY_ORIENTATION UNITY_ASTC_NORMALMAP_ENCODING SHADER_API_GLES30 UNITY_UNIFIED_SHADER_PRECISION_MODEL flags=0 lang=3 type=Fragment platform=d3d11 reqs=1 mask=6 start=2349 ok=1 outsize=290
Cmd: shutdown

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]

View File

@@ -0,0 +1,8 @@
is_global = true
build_property.RootNamespace =
build_property.ProjectDir = E:\Unity\Projects\CardGame\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.CsWinRTUseWindowsUIXamlProjections = false
build_property.EffectiveAnalysisLevelStyle =
build_property.EnableCodeStyleSeverity =

View File

@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]

View File

@@ -0,0 +1,8 @@
is_global = true
build_property.RootNamespace =
build_property.ProjectDir = E:\Unity\Projects\CardGame\
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.CsWinRTUseWindowsUIXamlProjections = false
build_property.EffectiveAnalysisLevelStyle =
build_property.EnableCodeStyleSeverity =

View File

@@ -98,7 +98,7 @@ MonoBehaviour:
m_MinSize: {x: 300, y: 100}
m_MaxSize: {x: 24288, y: 16192}
vertical: 0
controlID: 133
controlID: 17
draggingID: 0
--- !u!114 &5
MonoBehaviour:
@@ -192,8 +192,8 @@ MonoBehaviour:
y: 0
width: 1304
height: 955
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 4000, y: 4000}
m_MinSize: {x: 201, y: 226}
m_MaxSize: {x: 4001, y: 4026}
m_ActualView: {fileID: 17}
m_Panes:
- {fileID: 18}
@@ -226,7 +226,7 @@ MonoBehaviour:
m_MinSize: {x: 200, y: 50}
m_MaxSize: {x: 16192, y: 8096}
vertical: 0
controlID: 90
controlID: 43
draggingID: 0
--- !u!114 &10
MonoBehaviour:
@@ -391,7 +391,7 @@ MonoBehaviour:
m_OverlaysVisible: 1
m_LockTracker:
m_IsLocked: 0
m_LastSelectedObjectID: -12102
m_LastSelectedObjectID: 42434
--- !u!114 &14
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -524,7 +524,7 @@ MonoBehaviour:
m_SkipHidden: 0
m_SearchArea: 1
m_Folders:
- Assets/Prefabs
- Assets/Scripts
m_Globs: []
m_ProductIds:
m_AnyWithAssetOrigin: 0
@@ -534,16 +534,16 @@ MonoBehaviour:
m_ViewMode: 1
m_StartGridSize: 64
m_LastFolders:
- Assets/Prefabs
- Assets/Scripts
m_LastFoldersGridSize: -1
m_LastProjectPath: E:\Unity\Projects\CardGame
m_LockTracker:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: a8aa0000
m_LastClickedID: 43688
m_ExpandedIDs: 0000000016aa000018aa00001aaa00001caa00001eaa000000ca9a3b
m_SelectedIDs: b4aa0000
m_LastClickedID: 43700
m_ExpandedIDs: 000000001eaa000020aa000022aa000024aa000026aa000000ca9a3b
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -572,7 +572,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 0000000016aa000018aa00001aaa00001caa00001eaa0000
m_ExpandedIDs: 000000001eaa000020aa000022aa000024aa000026aa0000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -1464,10 +1464,10 @@ MonoBehaviour:
m_OverlaysVisible: 1
m_SceneHierarchy:
m_TreeViewState:
scrollPos: {x: 0, y: 165}
m_SelectedIDs: bad0ffff
m_LastClickedID: -12102
m_ExpandedIDs: bad0ffff1cfbffffdca50000fea500001ea600003ea600006ea6000072a60000bca60000cca60000
scrollPos: {x: 0, y: 0}
m_SelectedIDs: c2a50000
m_LastClickedID: 42434
m_ExpandedIDs: 1cfbffff
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name: