SkillTreeSO WIP (i hate the GameAssembly (;-;) )
This commit is contained in:
parent
6826eada7a
commit
5017fe7ac5
56
.vscode/settings.json
vendored
Normal file
56
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
{
|
||||
"files.exclude":
|
||||
{
|
||||
"**/.DS_Store":true,
|
||||
"**/.git":true,
|
||||
"**/.gitmodules":true,
|
||||
"**/*.booproj":true,
|
||||
"**/*.pidb":true,
|
||||
"**/*.suo":true,
|
||||
"**/*.user":true,
|
||||
"**/*.userprefs":true,
|
||||
"**/*.unityproj":true,
|
||||
"**/*.dll":true,
|
||||
"**/*.exe":true,
|
||||
"**/*.pdf":true,
|
||||
"**/*.mid":true,
|
||||
"**/*.midi":true,
|
||||
"**/*.wav":true,
|
||||
"**/*.gif":true,
|
||||
"**/*.ico":true,
|
||||
"**/*.jpg":true,
|
||||
"**/*.jpeg":true,
|
||||
"**/*.png":true,
|
||||
"**/*.psd":true,
|
||||
"**/*.tga":true,
|
||||
"**/*.tif":true,
|
||||
"**/*.tiff":true,
|
||||
"**/*.3ds":true,
|
||||
"**/*.3DS":true,
|
||||
"**/*.fbx":true,
|
||||
"**/*.FBX":true,
|
||||
"**/*.lxo":true,
|
||||
"**/*.LXO":true,
|
||||
"**/*.ma":true,
|
||||
"**/*.MA":true,
|
||||
"**/*.obj":true,
|
||||
"**/*.OBJ":true,
|
||||
"**/*.asset":true,
|
||||
"**/*.cubemap":true,
|
||||
"**/*.flare":true,
|
||||
"**/*.mat":true,
|
||||
"**/*.meta":true,
|
||||
"**/*.prefab":true,
|
||||
"**/*.unity":true,
|
||||
"build/":true,
|
||||
"Build/":true,
|
||||
"Library/":true,
|
||||
"library/":true,
|
||||
"obj/":true,
|
||||
"Obj/":true,
|
||||
"ProjectSettings/":true,
|
||||
"temp/":true,
|
||||
"Temp/":true
|
||||
},
|
||||
"dotnet.preferCSharpExtension": true
|
||||
}
|
||||
34
Assets/ArcherFireArrowSkill.cs
Normal file
34
Assets/ArcherFireArrowSkill.cs
Normal file
@ -0,0 +1,34 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ArcherFireArrowSkill : SkillSO
|
||||
{
|
||||
public GameObject fireArrow;
|
||||
public GameObject poisonArrow;
|
||||
float fireDamage = 5;
|
||||
float poisonDamage = 5;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
// activateSkill(this);
|
||||
}
|
||||
|
||||
public void activateSkill(Ally ally){
|
||||
if(PlayerPrefs.GetInt("Skill " + 0) == 1){
|
||||
Debug.Log("Fire Arrow");
|
||||
// ally.otherSkills[0] = this;
|
||||
}
|
||||
if (PlayerPrefs.GetInt("Skill " + 1) == 1){
|
||||
Debug.Log("Poison Arrow");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/ArcherFireArrowSkill.cs.meta
Normal file
11
Assets/ArcherFireArrowSkill.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0eb8d5aed89082147928e2317cb3ae41
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -24,6 +24,7 @@ MonoBehaviour:
|
||||
allyAttackSpeedMultiplier: 1
|
||||
allySpeedMultiplier: 1
|
||||
allyRangeMultiplier: {x: 1, y: 1}
|
||||
skillID: 0
|
||||
basePopulation: 5
|
||||
populationGivenPerHouse: 5
|
||||
populationCostPerUnit: 1
|
||||
|
||||
21
Assets/KnightHolySkill.cs
Normal file
21
Assets/KnightHolySkill.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class KnightHolySkill : SkillSO
|
||||
{
|
||||
float holyHealing = 5;
|
||||
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/KnightHolySkill.cs.meta
Normal file
11
Assets/KnightHolySkill.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 43903b5cc32226e41849a32aa6627641
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -427,6 +427,7 @@ RectTransform:
|
||||
- {fileID: 652135140497265160}
|
||||
- {fileID: 652135141588773322}
|
||||
- {fileID: 1388419616670829464}
|
||||
- {fileID: 7704789924884472609}
|
||||
m_Father: {fileID: 7318915945480603808}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
@ -435,6 +436,139 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: -58, y: -99}
|
||||
m_SizeDelta: {x: 1820, y: 980}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &5411801726548839770
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7704789924884472609}
|
||||
- component: {fileID: 8258967323943951569}
|
||||
- component: {fileID: 9084150959317295522}
|
||||
- component: {fileID: 8600553902440767066}
|
||||
m_Layer: 5
|
||||
m_Name: Btn_SkillTree
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &7704789924884472609
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5411801726548839770}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.16324572, y: 0.16324572, z: 0.16324572}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1388419617214705178}
|
||||
m_RootOrder: 12
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 0}
|
||||
m_AnchoredPosition: {x: -23, y: 264}
|
||||
m_SizeDelta: {x: 512, y: 512}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8258967323943951569
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5411801726548839770}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &9084150959317295522
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5411801726548839770}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, 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_Sprite: {fileID: 21300000, guid: 40f4f2cff86c68f4aaccce14435eba65, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &8600553902440767066
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5411801726548839770}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 9084150959317295522}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls:
|
||||
- m_Target: {fileID: 0}
|
||||
m_TargetAssemblyTypeName: WorldMapManager, GameAssembly
|
||||
m_MethodName: WorldReinitialition
|
||||
m_Mode: 1
|
||||
m_Arguments:
|
||||
m_ObjectArgument: {fileID: 0}
|
||||
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
|
||||
m_IntArgument: 0
|
||||
m_FloatArgument: 0
|
||||
m_StringArgument:
|
||||
m_BoolArgument: 0
|
||||
m_CallState: 2
|
||||
--- !u!1 &6646286295886637728
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@ -665,6 +665,22 @@ PrefabInstance:
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
|
||||
value:
|
||||
objectReference: {fileID: 1340105976}
|
||||
- target: {fileID: 7704789924884472609, guid: 4a2f48781c26ad247b697aa368358f88, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: -43
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7704789924884472609, guid: 4a2f48781c26ad247b697aa368358f88, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 179
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8600553902440767066, guid: 4a2f48781c26ad247b697aa368358f88, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
|
||||
value:
|
||||
objectReference: {fileID: 1340105976}
|
||||
- target: {fileID: 8600553902440767066, guid: 4a2f48781c26ad247b697aa368358f88, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
|
||||
value: LoadSkillTreeScene
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 4a2f48781c26ad247b697aa368358f88, type: 3}
|
||||
--- !u!1 &1893888154391728752 stripped
|
||||
@ -739,6 +755,14 @@ PrefabInstance:
|
||||
propertyPath: _gameScene
|
||||
value: Game
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3405186844740662671, guid: 074c072b696214a4ba44ff66e9a7d9a6, type: 3}
|
||||
propertyPath: _skillTree
|
||||
value: SkillTree
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3405186844740662671, guid: 074c072b696214a4ba44ff66e9a7d9a6, type: 3}
|
||||
propertyPath: _skillTreeScene
|
||||
value: SkillTree
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3405186844740662671, guid: 074c072b696214a4ba44ff66e9a7d9a6, type: 3}
|
||||
propertyPath: loadingScreenScene
|
||||
value: LoadingScreen
|
||||
|
||||
@ -123,6 +123,11 @@ NavMeshSettings:
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &34326663 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 8500515049654977639, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
m_PrefabInstance: {fileID: 8500515049159345218}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &74215036
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -185,8 +190,15 @@ MonoBehaviour:
|
||||
- {fileID: 11400000, guid: d56cd3a5eb2ad3f48b68183560afa5c9, type: 2}
|
||||
_skillTreeItemPrefab: {fileID: 7442892309867697477, guid: 07fe615b8cf3559439b9a4b36a21d5b7, type: 3}
|
||||
_uiLineRendererPrefab: {fileID: 1946587475807645676, guid: 15d6d4e31075baa40b5945d9baa4ceb3, type: 3}
|
||||
_popUpConfigPrefab: {fileID: 232267571}
|
||||
_skillTreeInfoItemPrefab: {fileID: 34326663}
|
||||
_nodeContainer: {fileID: 1280368214}
|
||||
_lineContainer: {fileID: 2124872662}
|
||||
--- !u!1 &232267571 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 8352134460565066080, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
m_PrefabInstance: {fileID: 8352134459728516491}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &586799724
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -265,6 +277,11 @@ MonoBehaviour:
|
||||
m_DeselectOnBackgroundClick: 1
|
||||
m_PointerBehavior: 0
|
||||
m_CursorLockBehavior: 0
|
||||
--- !u!224 &797786150 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
m_PrefabInstance: {fileID: 8500515049159345218}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &879395221
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -576,7 +593,7 @@ Canvas:
|
||||
m_OverrideSorting: 0
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 0
|
||||
m_AdditionalShaderChannelsFlag: 25
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 0
|
||||
m_TargetDisplay: 0
|
||||
@ -593,6 +610,8 @@ RectTransform:
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 879395222}
|
||||
- {fileID: 797786150}
|
||||
- {fileID: 1915569388}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
@ -754,9 +773,36 @@ RectTransform:
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 921, y: 0}
|
||||
m_SizeDelta: {x: -1920, y: 1080}
|
||||
m_Pivot: {x: 0, y: 1}
|
||||
--- !u!224 &1915569388 stripped
|
||||
RectTransform:
|
||||
m_CorrespondingSourceObject: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
m_PrefabInstance: {fileID: 8352134459728516491}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &1915569390 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: -2744635336287484427, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
m_PrefabInstance: {fileID: 8352134459728516491}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 232267571}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4b80b8d8e0ceec641b8cd70da5cfa101, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &2010966631 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 49804712395444694, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
m_PrefabInstance: {fileID: 8352134459728516491}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &2124872661
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -793,3 +839,365 @@ RectTransform:
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1001 &8352134459728516491
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 1615913764}
|
||||
m_Modifications:
|
||||
- target: {fileID: -2744635336287484427, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: _confirmText
|
||||
value:
|
||||
objectReference: {fileID: 2010966631}
|
||||
- target: {fileID: 3065987738267941663, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134459850921619, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134459850921619, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134459850921619, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
|
||||
value:
|
||||
objectReference: {fileID: 1915569390}
|
||||
- target: {fileID: 8352134459850921619, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_CallState
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134459850921619, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
|
||||
value: OnRefuse
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134459850921619, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
|
||||
value: SkillTreePopUpManager, Assembly-CSharp
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134459850921619, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName
|
||||
value: UnityEngine.Object, UnityEngine
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460546404357, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460546404357, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Mode
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460546404357, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
|
||||
value:
|
||||
objectReference: {fileID: 1915569390}
|
||||
- target: {fileID: 8352134460546404357, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_CallState
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460546404357, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_MethodName
|
||||
value: Validate
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460546404357, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_TargetAssemblyTypeName
|
||||
value: SkillTreePopUpManager, Assembly-CSharp
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460546404357, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Arguments.m_ObjectArgumentAssemblyTypeName
|
||||
value: UnityEngine.Object, UnityEngine
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066080, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: PopUpConfirm
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066080, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066080, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_TagString
|
||||
value: PopUp
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066086, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_Sprite
|
||||
value:
|
||||
objectReference: {fileID: 7482667652216324306, guid: 311925a002f4447b3a28927169b83ea6, type: 3}
|
||||
- target: {fileID: 8352134460565066086, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_Color.a
|
||||
value: 0.5372549
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066086, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_Enabled
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066086, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_DrawMode
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066086, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_SortingOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066086, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_MaskInteraction
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066086, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_RenderingLayerMask
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_Pivot.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 674.76996
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 450.49994
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 328.70996
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: -17
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: -4
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8352134460565066087, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8581790158577266044, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8581790158577266044, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 3
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: d0174b0d9356228408b90ff381c957bf, type: 3}
|
||||
--- !u!1001 &8500515049159345218
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 1615913764}
|
||||
m_Modifications:
|
||||
- target: {fileID: 6041358240421681741, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: priceTxt
|
||||
value:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6041358240421681741, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: effectTxt
|
||||
value:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6041358240421681741, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: displayPfb
|
||||
value:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6041358240421681741, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: description
|
||||
value:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6041358240421681741, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: displayName
|
||||
value:
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515048477339417, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_text
|
||||
value: Price
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515048510216325, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_text
|
||||
value: Display
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515048700126730, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_text
|
||||
value: Descriptions
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049427654130, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_text
|
||||
value: Effects
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_Pivot.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_Pivot.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_AnchorMax.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_AnchorMin.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 3.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0.2843
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: -0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 7.605
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 398
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977636, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977637, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_SortingLayer
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977637, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_SortingLayerID
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977637, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_RenderingLayerMask
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8500515049654977639, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Display
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 31763d4c83ba4d04f8327e2eae5fd406, type: 3}
|
||||
|
||||
@ -2,7 +2,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Ally : Entity
|
||||
public abstract class Ally : Entity
|
||||
{
|
||||
public override float DamageMultiplier => GlobalConfig.Instance.Current.allyDamageMultiplier;
|
||||
public override float AttackSpeedMultiplier => GlobalConfig.Instance.Current.allyAttackSpeedMultiplier;
|
||||
@ -10,8 +10,18 @@ public class Ally : Entity
|
||||
public override Vector2 RangeMultiplier => GlobalConfig.Instance.Current.allyRangeMultiplier;
|
||||
public override float SpeedMultiplier => GlobalConfig.Instance.Current.allySpeedMultiplier;
|
||||
public float PopulationCost => GlobalConfig.Instance.Current.populationCostPerUnit;
|
||||
public int skillID => GlobalConfig.Instance.Current.skillID;
|
||||
public SkillSO[] otherSkills;
|
||||
|
||||
|
||||
private void Start() {
|
||||
// foreach (Ally ally in otherSkills)
|
||||
// {
|
||||
if(PlayerPrefs.GetInt("skill "+ otherSkills[0].skillID) == 1)
|
||||
Debug.Log("Work bitch work!");
|
||||
// }
|
||||
}
|
||||
|
||||
public override void Update()
|
||||
{
|
||||
base.Update();
|
||||
@ -46,4 +56,6 @@ public class Ally : Entity
|
||||
base.LevelDestroy();
|
||||
ResourceManager.Instance.CurrentPopulation -= PopulationCost;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -5,6 +5,18 @@ using UnityEngine;
|
||||
public class Archer : Ally
|
||||
{
|
||||
|
||||
public enum SkillArcher{
|
||||
FireArrow = 0,
|
||||
PoisonArrow = 1
|
||||
}
|
||||
|
||||
public SkillArcher skillArcher = 0;
|
||||
|
||||
public GameObject fireArrow;
|
||||
public GameObject poisonArrow;
|
||||
float fireDamage = 5;
|
||||
float poisonDamage = 5;
|
||||
|
||||
public override void Start()
|
||||
{
|
||||
base.Start();
|
||||
@ -19,6 +31,21 @@ public class Archer : Ally
|
||||
|
||||
}
|
||||
|
||||
public void ChangeProjectile(GameObject gameObject)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void activateSkill(Ally ally){
|
||||
if(PlayerPrefs.GetInt("Skill " + skillArcher) == 1){
|
||||
Debug.Log("Fire Arrow");
|
||||
|
||||
}
|
||||
if (PlayerPrefs.GetInt("Skill " + 1) == 1){
|
||||
Debug.Log("Poison Arrow");
|
||||
}
|
||||
}
|
||||
|
||||
void AttackEnemy()
|
||||
{
|
||||
|
||||
|
||||
@ -20,7 +20,6 @@ public abstract class Entity : LevelObject
|
||||
private Shader _shaderSpritesDefault;
|
||||
private SpriteRenderer[] _spriteRenderers;
|
||||
private AudioPlayerComponent _audioPlayerComponent;
|
||||
|
||||
//Enemy Spotted
|
||||
private bool _isEnemyDetected = false;
|
||||
private Entity _enemy;
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
using UnityEditor.Graphs;
|
||||
using UnityEngine;
|
||||
|
||||
public class GlobalConfig : SingletonBehaviour<GlobalConfig>
|
||||
|
||||
@ -26,6 +26,9 @@ public class GlobalConfigFile : ScriptableObject
|
||||
public float allySpeedMultiplier = 1;
|
||||
public Vector2 allyRangeMultiplier = Vector2.one;
|
||||
|
||||
[Header("Skills")]
|
||||
public int skillID;
|
||||
|
||||
[Header("Population")]
|
||||
public int basePopulation = 5;
|
||||
public int populationGivenPerHouse = 5;
|
||||
|
||||
@ -9,7 +9,6 @@ public abstract class LevelObject : MonoBehaviour, ILevelObject
|
||||
{
|
||||
public Vector3 Position { get => transform.position; protected set => transform.position = value; }
|
||||
public string Name { get => name; protected set => name = value; }
|
||||
|
||||
public bool IsCollidable
|
||||
{
|
||||
get
|
||||
|
||||
10
Assets/Scripts/SkillSO.cs
Normal file
10
Assets/Scripts/SkillSO.cs
Normal file
@ -0,0 +1,10 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class SkillSO : ScriptableObject
|
||||
{
|
||||
private int _skillID;
|
||||
|
||||
public int skillID => _skillID;
|
||||
}
|
||||
11
Assets/Scripts/SkillSO.cs.meta
Normal file
11
Assets/Scripts/SkillSO.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 83ca4259b55fe164d818a6bee2a27560
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -8,6 +8,8 @@ public class WorldMapManager : MonoBehaviour
|
||||
private string _loadingScreenScene;
|
||||
[Scene][SerializeField]
|
||||
private string _gameScene;
|
||||
[Scene][SerializeField]
|
||||
private string _skillTreeScene;
|
||||
[SerializeField]
|
||||
private GameObject[] _buttonList;
|
||||
[SerializeField]
|
||||
@ -86,4 +88,9 @@ public class WorldMapManager : MonoBehaviour
|
||||
SceneManager.LoadScene(_loadingScreenScene, LoadSceneMode.Additive);
|
||||
}
|
||||
}
|
||||
|
||||
public void LoadSkillTreeScene()
|
||||
{
|
||||
SceneManager.LoadScene(_skillTreeScene, LoadSceneMode.Additive);
|
||||
}
|
||||
}
|
||||
|
||||
626
Assets/Skill Tree/Display.prefab
Normal file
626
Assets/Skill Tree/Display.prefab
Normal file
@ -0,0 +1,626 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &5407543854621094596
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2746352005878127090}
|
||||
- component: {fileID: 3041093354497698459}
|
||||
- component: {fileID: 7923309205642868859}
|
||||
m_Layer: 5
|
||||
m_Name: BgDisplay
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &2746352005878127090
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5407543854621094596}
|
||||
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: 8500515049654977636}
|
||||
m_RootOrder: 0
|
||||
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.0000000037253, y: -0.010728}
|
||||
m_SizeDelta: {x: 3.5, y: 0.25006}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3041093354497698459
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5407543854621094596}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &7923309205642868859
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5407543854621094596}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.3962264, g: 0, b: 0.25932866, a: 0.5529412}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &8500515048054515126
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8500515048054515127}
|
||||
- component: {fileID: 8500515048054515125}
|
||||
- component: {fileID: 8500515048054515124}
|
||||
m_Layer: 5
|
||||
m_Name: Image
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8500515048054515127
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515048054515126}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.004928125, y: 0.004928125, z: 0.004928125}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8500515049654977636}
|
||||
m_RootOrder: 2
|
||||
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.819, y: -0.010728}
|
||||
m_SizeDelta: {x: 61.105957, y: 29.675583}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8500515048054515125
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515048054515126}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8500515048054515124
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515048054515126}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, 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_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &8500515048477339419
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8500515048477339416}
|
||||
- component: {fileID: 8500515048477339422}
|
||||
- component: {fileID: 8500515048477339417}
|
||||
m_Layer: 5
|
||||
m_Name: Price
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8500515048477339416
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515048477339419}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.0016339951, y: 0.0016339951, z: 0.0016339951}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8500515049654977636}
|
||||
m_RootOrder: 4
|
||||
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.808, y: 0.041}
|
||||
m_SizeDelta: {x: 263.4, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8500515048477339422
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515048477339419}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8500515048477339417
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515048477339419}
|
||||
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: Prices
|
||||
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: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, 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: 36
|
||||
m_fontSizeBase: 36
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
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_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 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!1 &8500515048510216327
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8500515048510216324}
|
||||
- component: {fileID: 8500515048510216330}
|
||||
- component: {fileID: 8500515048510216325}
|
||||
m_Layer: 5
|
||||
m_Name: DisplayName
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8500515048510216324
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515048510216327}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.0033761014, y: 0.0033761014, z: 0.0033761014}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8500515049654977636}
|
||||
m_RootOrder: 1
|
||||
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.273, y: 0.041}
|
||||
m_SizeDelta: {x: 200, y: 30.218521}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8500515048510216330
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515048510216327}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8500515048510216325
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515048510216327}
|
||||
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: Display
|
||||
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: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, 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: 21
|
||||
m_fontSizeBase: 21
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
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_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 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!1 &8500515048700126724
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8500515048700126725}
|
||||
- component: {fileID: 8500515048700126731}
|
||||
- component: {fileID: 8500515048700126730}
|
||||
m_Layer: 5
|
||||
m_Name: Description
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8500515048700126725
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515048700126724}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.0045072, y: 0.0045072, z: 0.0045072}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8500515049654977636}
|
||||
m_RootOrder: 3
|
||||
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.175, y: -0.054}
|
||||
m_SizeDelta: {x: 348.2, y: 18.344}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8500515048700126731
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515048700126724}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8500515048700126730
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515048700126724}
|
||||
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: Description
|
||||
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: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, 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: 16
|
||||
m_fontSizeBase: 16
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 1
|
||||
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_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 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.000060626266, 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!1 &8500515049654977639
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8500515049654977636}
|
||||
- component: {fileID: 6041358240421681741}
|
||||
- component: {fileID: 4982171507423199400}
|
||||
m_Layer: 5
|
||||
m_Name: Display
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8500515049654977636
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515049654977639}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 561.7295, y: 561.7295, z: 561.7295}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 2746352005878127090}
|
||||
- {fileID: 8500515048510216324}
|
||||
- {fileID: 8500515048054515127}
|
||||
- {fileID: 8500515048700126725}
|
||||
- {fileID: 8500515048477339416}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
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.0050049, y: 216.78763}
|
||||
m_SizeDelta: {x: 2.0419, y: 0.2286}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &6041358240421681741
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515049654977639}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 46632323e0fd4a547973da9a1daecaaf, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
displayPfb: {fileID: 8500515049654977639}
|
||||
displayName: {fileID: 8500515048510216325}
|
||||
description: {fileID: 8500515048700126730}
|
||||
priceTxt: {fileID: 8500515048477339417}
|
||||
--- !u!222 &4982171507423199400
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8500515049654977639}
|
||||
m_CullTransparentMesh: 1
|
||||
7
Assets/Skill Tree/Display.prefab.meta
Normal file
7
Assets/Skill Tree/Display.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 31763d4c83ba4d04f8327e2eae5fd406
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
911
Assets/Skill Tree/PopUpConfirm.prefab
Normal file
911
Assets/Skill Tree/PopUpConfirm.prefab
Normal file
@ -0,0 +1,911 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &559403721543143120
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 4225708733955891470}
|
||||
- component: {fileID: 8601519485030667923}
|
||||
- component: {fileID: 485534472688425551}
|
||||
m_Layer: 5
|
||||
m_Name: BGPopUp
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &4225708733955891470
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 559403721543143120}
|
||||
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: 8352134460565066087}
|
||||
m_RootOrder: 1
|
||||
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: 0}
|
||||
m_SizeDelta: {x: 1, y: 1}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8601519485030667923
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 559403721543143120}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &485534472688425551
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 559403721543143120}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 0, b: 0, a: 0.5254902}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &917717681745329445
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8581790158577266044}
|
||||
- component: {fileID: 4411789236188868408}
|
||||
- component: {fileID: 3774604313623299682}
|
||||
m_Layer: 5
|
||||
m_Name: BGHidden
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8581790158577266044
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 917717681745329445}
|
||||
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: 8352134460565066087}
|
||||
m_RootOrder: 0
|
||||
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: 0}
|
||||
m_SizeDelta: {x: 1148, y: 562}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &4411789236188868408
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 917717681745329445}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &3774604313623299682
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 917717681745329445}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0, g: 0, b: 0, a: 0.39215687}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 0}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &4423297063563060469
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 125653628039257673}
|
||||
- component: {fileID: 3487847912551356935}
|
||||
- component: {fileID: 49804712395444694}
|
||||
m_Layer: 5
|
||||
m_Name: ConfirmTxt
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &125653628039257673
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4423297063563060469}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.0033761014, y: 0.0033761014, z: 0.0033761014}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 8352134460565066087}
|
||||
m_RootOrder: 4
|
||||
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.005, y: 0.155}
|
||||
m_SizeDelta: {x: 200, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3487847912551356935
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4423297063563060469}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &49804712395444694
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 4423297063563060469}
|
||||
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: "\xCAtes-vous s\xFBr de vouloir selectionner Attack"
|
||||
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: 4294967295
|
||||
m_fontColor: {r: 1, g: 1, b: 1, 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: 24
|
||||
m_fontSizeBase: 24
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
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_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 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!1 &8352134459825290022
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8352134459825290021}
|
||||
- component: {fileID: 8352134459825290043}
|
||||
- component: {fileID: 8352134459825290020}
|
||||
m_Layer: 5
|
||||
m_Name: Text (TMP)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8352134459825290021
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134459825290022}
|
||||
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: 8352134460546404358}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8352134459825290043
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134459825290022}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8352134459825290020
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134459825290022}
|
||||
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: Accepter
|
||||
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: 4281479730
|
||||
m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, 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: 24
|
||||
m_fontSizeBase: 24
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 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!1 &8352134459840217265
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8352134459840217264}
|
||||
- component: {fileID: 8352134459840217270}
|
||||
- component: {fileID: 8352134459840217271}
|
||||
m_Layer: 5
|
||||
m_Name: Text (TMP)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8352134459840217264
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134459840217265}
|
||||
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: 8352134459850921628}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8352134459840217270
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134459840217265}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8352134459840217271
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134459840217265}
|
||||
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: Annuler
|
||||
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: 4281479730
|
||||
m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, 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: 24
|
||||
m_fontSizeBase: 24
|
||||
m_fontWeight: 400
|
||||
m_enableAutoSizing: 0
|
||||
m_fontSizeMin: 18
|
||||
m_fontSizeMax: 72
|
||||
m_fontStyle: 0
|
||||
m_HorizontalAlignment: 2
|
||||
m_VerticalAlignment: 512
|
||||
m_textAlignment: 65535
|
||||
m_characterSpacing: 0
|
||||
m_wordSpacing: 0
|
||||
m_lineSpacing: 0
|
||||
m_lineSpacingMax: 0
|
||||
m_paragraphSpacing: 0
|
||||
m_charWidthMaxAdj: 0
|
||||
m_enableWordWrapping: 1
|
||||
m_wordWrappingRatios: 0.4
|
||||
m_overflowMode: 0
|
||||
m_linkedTextComponent: {fileID: 0}
|
||||
parentLinkedComponent: {fileID: 0}
|
||||
m_enableKerning: 1
|
||||
m_enableExtraPadding: 0
|
||||
checkPaddingRequired: 0
|
||||
m_isRichText: 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!1 &8352134459850921629
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8352134459850921628}
|
||||
- component: {fileID: 8352134459850921617}
|
||||
- component: {fileID: 8352134459850921618}
|
||||
- component: {fileID: 8352134459850921619}
|
||||
m_Layer: 5
|
||||
m_Name: BtnAnnuler
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8352134459850921628
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134459850921629}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.0017870951, y: 0.0017870951, z: 0.0017870951}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 8352134459840217264}
|
||||
m_Father: {fileID: 8352134460565066087}
|
||||
m_RootOrder: 3
|
||||
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.222, y: -0.256}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8352134459850921617
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134459850921629}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8352134459850921618
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134459850921629}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, 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_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &8352134459850921619
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134459850921629}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 8352134459850921618}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!1 &8352134460546404359
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8352134460546404358}
|
||||
- component: {fileID: 8352134460546404379}
|
||||
- component: {fileID: 8352134460546404356}
|
||||
- component: {fileID: 8352134460546404357}
|
||||
m_Layer: 5
|
||||
m_Name: BtnAccepter
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8352134460546404358
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134460546404359}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.0017870951, y: 0.0017870951, z: 0.0017870951}
|
||||
m_ConstrainProportionsScale: 1
|
||||
m_Children:
|
||||
- {fileID: 8352134459825290021}
|
||||
m_Father: {fileID: 8352134460565066087}
|
||||
m_RootOrder: 2
|
||||
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.194, y: -0.256}
|
||||
m_SizeDelta: {x: 160, y: 30}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &8352134460546404379
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134460546404359}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &8352134460546404356
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134460546404359}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, 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_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &8352134460546404357
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134460546404359}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 8352134460546404356}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!1 &8352134460565066080
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 8352134460565066087}
|
||||
- component: {fileID: 8352134460565066086}
|
||||
- component: {fileID: -2744635336287484427}
|
||||
m_Layer: 5
|
||||
m_Name: PopUpConfirm
|
||||
m_TagString: PopUp
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &8352134460565066087
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134460565066080}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 674.77, y: 450.5, z: 328.71}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 8581790158577266044}
|
||||
- {fileID: 4225708733955891470}
|
||||
- {fileID: 8352134460546404358}
|
||||
- {fileID: 8352134459850921628}
|
||||
- {fileID: 125653628039257673}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!212 &8352134460565066086
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134460565066080}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_StaticShadowCaster: 0
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 0
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 0
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 2100000, guid: a97c105638bdf8b4a8650670310a4cd3, type: 2}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Color: {r: 1, g: 0, b: 0, a: 0.62352943}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 0.16, y: 0.16}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!114 &-2744635336287484427
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8352134460565066080}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4b80b8d8e0ceec641b8cd70da5cfa101, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_confirmText: {fileID: 49804712395444694}
|
||||
7
Assets/Skill Tree/PopUpConfirm.prefab.meta
Normal file
7
Assets/Skill Tree/PopUpConfirm.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d0174b0d9356228408b90ff381c957bf
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -90,3 +90,5 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_data: {fileID: 0}
|
||||
_displayInfo: {fileID: 0}
|
||||
_popUpConf: {fileID: 0}
|
||||
|
||||
@ -12,8 +12,16 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 526e6c18f56dd004bad96452cd958dc3, type: 3}
|
||||
m_Name: Test1 1
|
||||
m_EditorClassIdentifier:
|
||||
_displayName:
|
||||
_description:
|
||||
_effects: []
|
||||
_price: 0
|
||||
_skillID: 0
|
||||
_skillSO: {fileID: 0}
|
||||
_displayName: Fire archer
|
||||
_description: 'archers can attack with fire arrow '
|
||||
_effects:
|
||||
- _stat: Power
|
||||
_modifier: 5
|
||||
- _stat: Stamina
|
||||
_modifier: 5
|
||||
- _stat: Production
|
||||
_modifier: 5
|
||||
_price: 1
|
||||
_prerequisites: []
|
||||
|
||||
@ -12,6 +12,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 526e6c18f56dd004bad96452cd958dc3, type: 3}
|
||||
m_Name: Test1 2
|
||||
m_EditorClassIdentifier:
|
||||
_skillID: 1
|
||||
_skillSO: {fileID: 0}
|
||||
_displayName:
|
||||
_description:
|
||||
_effects: []
|
||||
|
||||
@ -12,6 +12,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 526e6c18f56dd004bad96452cd958dc3, type: 3}
|
||||
m_Name: Test1 3
|
||||
m_EditorClassIdentifier:
|
||||
_skillID: 2
|
||||
_skillSO: {fileID: 0}
|
||||
_displayName:
|
||||
_description:
|
||||
_effects: []
|
||||
|
||||
@ -12,6 +12,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 526e6c18f56dd004bad96452cd958dc3, type: 3}
|
||||
m_Name: Test1 4
|
||||
m_EditorClassIdentifier:
|
||||
_skillID: 3
|
||||
_skillSO: {fileID: 0}
|
||||
_displayName:
|
||||
_description:
|
||||
_effects: []
|
||||
|
||||
@ -12,6 +12,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 526e6c18f56dd004bad96452cd958dc3, type: 3}
|
||||
m_Name: Test1 5
|
||||
m_EditorClassIdentifier:
|
||||
_skillID: 4
|
||||
_skillSO: {fileID: 0}
|
||||
_displayName:
|
||||
_description:
|
||||
_effects: []
|
||||
|
||||
@ -12,6 +12,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 526e6c18f56dd004bad96452cd958dc3, type: 3}
|
||||
m_Name: Test1 6
|
||||
m_EditorClassIdentifier:
|
||||
_skillID: 5
|
||||
_skillSO: {fileID: 0}
|
||||
_displayName:
|
||||
_description:
|
||||
_effects: []
|
||||
|
||||
@ -12,6 +12,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 526e6c18f56dd004bad96452cd958dc3, type: 3}
|
||||
m_Name: Test1 7
|
||||
m_EditorClassIdentifier:
|
||||
_skillID: 6
|
||||
_skillSO: {fileID: 0}
|
||||
_displayName:
|
||||
_description:
|
||||
_effects: []
|
||||
|
||||
@ -12,6 +12,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 526e6c18f56dd004bad96452cd958dc3, type: 3}
|
||||
m_Name: Test1 8
|
||||
m_EditorClassIdentifier:
|
||||
_skillID: 7
|
||||
_skillSO: {fileID: 0}
|
||||
_displayName:
|
||||
_description:
|
||||
_effects: []
|
||||
|
||||
@ -12,6 +12,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 526e6c18f56dd004bad96452cd958dc3, type: 3}
|
||||
m_Name: Test1 9
|
||||
m_EditorClassIdentifier:
|
||||
_skillID: 8
|
||||
_skillSO: {fileID: 0}
|
||||
_displayName:
|
||||
_description:
|
||||
_effects: []
|
||||
|
||||
@ -12,6 +12,8 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 526e6c18f56dd004bad96452cd958dc3, type: 3}
|
||||
m_Name: Test1
|
||||
m_EditorClassIdentifier:
|
||||
_skillID: 9
|
||||
_skillSO: {fileID: 0}
|
||||
_displayName:
|
||||
_description:
|
||||
_effects: []
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
@ -8,4 +9,7 @@ public class SkillTreeEffect
|
||||
private string _stat;
|
||||
[SerializeField]
|
||||
private float _modifier;
|
||||
|
||||
public string Stat => _stat;
|
||||
public float Modifier => _modifier;
|
||||
}
|
||||
42
Assets/SkillTreeInfoDisplay.cs
Normal file
42
Assets/SkillTreeInfoDisplay.cs
Normal file
@ -0,0 +1,42 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using TMPro;
|
||||
|
||||
public class SkillTreeInfoDisplay : MonoBehaviour
|
||||
{
|
||||
public GameObject displayPfb;
|
||||
public TextMeshProUGUI displayName;
|
||||
public TextMeshProUGUI description;
|
||||
// public TextMeshProUGUI effectTxt;
|
||||
public TextMeshProUGUI priceTxt;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
displayPfb = this.gameObject;
|
||||
|
||||
displayName = displayPfb.GetComponentsInChildren<TextMeshProUGUI>()[0];
|
||||
description = displayPfb.GetComponentsInChildren<TextMeshProUGUI>()[1];
|
||||
// effectTxt = displayPfb.GetComponentsInChildren<TextMeshProUGUI>()[3];
|
||||
priceTxt = displayPfb.GetComponentsInChildren<TextMeshProUGUI>()[2];
|
||||
}
|
||||
|
||||
public void RemoveData(){
|
||||
displayName.text = "";
|
||||
description.text = "";
|
||||
// effectTxt.text = "";
|
||||
priceTxt.text = "";
|
||||
}
|
||||
|
||||
public void DisplayData(SkillTreeItem _data){
|
||||
displayName.text = _data.DisplayName;
|
||||
description.text = _data.Description;
|
||||
// effectTxt.text = "";
|
||||
|
||||
// foreach(SkillTreeEffect effect in _data.Effects){
|
||||
// effectTxt.text += "" + effect.Stat;
|
||||
// }
|
||||
priceTxt.text = "" + _data.Price;
|
||||
}
|
||||
}
|
||||
11
Assets/SkillTreeInfoDisplay.cs.meta
Normal file
11
Assets/SkillTreeInfoDisplay.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 46632323e0fd4a547973da9a1daecaaf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -4,6 +4,10 @@ using UnityEngine;
|
||||
[CreateAssetMenu(menuName = "Gather And Defend/Skill Tree Item")]
|
||||
public class SkillTreeItem : ScriptableObject
|
||||
{
|
||||
[SerializeField]
|
||||
private int _skillID;
|
||||
[SerializeField]
|
||||
private SkillSO _skillSO;
|
||||
[SerializeField]
|
||||
private string _displayName;
|
||||
[SerializeField]
|
||||
@ -15,6 +19,11 @@ public class SkillTreeItem : ScriptableObject
|
||||
[SerializeField]
|
||||
private List<SkillTreeItem> _prerequisites;
|
||||
|
||||
|
||||
public int SkillID => _skillID;
|
||||
public SkillSO SkillSO => _skillSO;
|
||||
public string DisplayName => _displayName;
|
||||
public string Description => _description;
|
||||
public IReadOnlyList<SkillTreeEffect> Effects => _effects;
|
||||
public int Price => _price;
|
||||
public IReadOnlyList<SkillTreeItem> Prerequisites => _prerequisites;
|
||||
|
||||
@ -2,35 +2,52 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using TMPro;
|
||||
using UnityEditor.SearchService;
|
||||
|
||||
public class SkillTreeItemDisplay : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IPointerClickHandler
|
||||
{
|
||||
[SerializeField]
|
||||
SkillTreeItem _data;
|
||||
public SkillTreeItem Data {get => _data; set => _data = value; }
|
||||
public SkillTreeInfoDisplay _displayInfo;
|
||||
private RectTransform _rectTransform;
|
||||
public SkillTreePopUpManager _popUpManager;
|
||||
public GameObject _popUpConf;
|
||||
private Vector2 size;
|
||||
|
||||
public List<UILineRenderer> RelatedLines { get; } = new();
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_rectTransform = GetComponent<RectTransform>();
|
||||
size = _rectTransform.sizeDelta;
|
||||
_displayInfo = FindAnyObjectByType<SkillTreeInfoDisplay>();
|
||||
_popUpManager = _popUpConf.GetComponent<SkillTreePopUpManager>();
|
||||
_popUpConf.SetActive(false);
|
||||
}
|
||||
public void OnPointerExit(PointerEventData eventData)
|
||||
{
|
||||
RelatedLines.ForEach(line => line.Deselect());
|
||||
_rectTransform.sizeDelta = size ;
|
||||
_rectTransform.sizeDelta = size;
|
||||
|
||||
_displayInfo.RemoveData();
|
||||
}
|
||||
|
||||
public void OnPointerEnter(PointerEventData eventData)
|
||||
{
|
||||
RelatedLines.ForEach(line => line.Select());
|
||||
_rectTransform.sizeDelta = size * 1.05f;
|
||||
|
||||
_displayInfo.DisplayData(_data);
|
||||
}
|
||||
|
||||
public void OnPointerClick(PointerEventData eventData)
|
||||
{
|
||||
_popUpConf.SetActive(true);
|
||||
_popUpManager.PressedSkill(_data);
|
||||
|
||||
Debug.Log("Clicked!");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -2,6 +2,8 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using Unity.VisualScripting;
|
||||
|
||||
|
||||
|
||||
#if UNITY_EDITOR
|
||||
@ -41,6 +43,11 @@ public class SkillTreeManager : MonoBehaviour
|
||||
GameObject _skillTreeItemPrefab;
|
||||
[SerializeField]
|
||||
GameObject _uiLineRendererPrefab;
|
||||
[SerializeField]
|
||||
GameObject _popUpConfigPrefab;
|
||||
[SerializeField]
|
||||
GameObject _skillTreeInfoItemPrefab;
|
||||
|
||||
[SerializeField]
|
||||
Transform _nodeContainer;
|
||||
[SerializeField]
|
||||
@ -48,6 +55,7 @@ public class SkillTreeManager : MonoBehaviour
|
||||
|
||||
private List<SkillTreeItemDisplay> DrawColumn(List<SkillTreeItem> items, List<SkillTreeItemDisplay> created)
|
||||
{
|
||||
var testList = new List<SkillSO>();
|
||||
var returnList = new List<SkillTreeItemDisplay>();
|
||||
var ancestors = items.Max(current => GetAncestorCount(current));
|
||||
for (int i = 0; i < items.Count; i++)
|
||||
@ -70,6 +78,7 @@ public class SkillTreeManager : MonoBehaviour
|
||||
instance.GetComponent<RectTransform>().anchoredPosition = pos;
|
||||
comp = instance.GetComponent<SkillTreeItemDisplay>();
|
||||
comp.Data = item;
|
||||
comp._popUpConf = _popUpConfigPrefab;
|
||||
created.Add(comp);
|
||||
returnList.Add(comp);
|
||||
}
|
||||
@ -85,6 +94,8 @@ public class SkillTreeManager : MonoBehaviour
|
||||
}
|
||||
return max;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void Start()
|
||||
|
||||
30
Assets/SkillTreePopUpManager.cs
Normal file
30
Assets/SkillTreePopUpManager.cs
Normal file
@ -0,0 +1,30 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine.EventSystems;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using System;
|
||||
|
||||
public class SkillTreePopUpManager : MonoBehaviour
|
||||
{
|
||||
public int IDSkill;
|
||||
public TextMeshProUGUI _confirmText;
|
||||
|
||||
public void PressedSkill(SkillTreeItem skillSelected){
|
||||
IDSkill = skillSelected.SkillID;
|
||||
_confirmText.text = "Êtes-vous sûr de vouloir selectionner " + skillSelected.DisplayName;
|
||||
}
|
||||
|
||||
public void Validate()
|
||||
{
|
||||
Debug.Log(Archer.SkillArcher.FireArrow.GetHashCode());
|
||||
PlayerPrefs.SetInt("Skill " + Archer.SkillArcher.FireArrow.GetHashCode(), 1);
|
||||
gameObject.SetActive(false);
|
||||
Debug.Log("Valider!");
|
||||
}
|
||||
|
||||
public void OnRefuse(){
|
||||
gameObject.SetActive(false);
|
||||
Debug.Log("Refuser!");
|
||||
}
|
||||
}
|
||||
11
Assets/SkillTreePopUpManager.cs.meta
Normal file
11
Assets/SkillTreePopUpManager.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4b80b8d8e0ceec641b8cd70da5cfa101
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -8,6 +8,9 @@ EditorBuildSettings:
|
||||
- enabled: 1
|
||||
path: Assets/Scenes/LevelSelect.unity
|
||||
guid: c1efd9104a876984eb669c4bd54598d1
|
||||
- enabled: 1
|
||||
path: Assets/Scenes/SkillTree.unity
|
||||
guid: 79f0602eee73dc644ad77124a878eae7
|
||||
- enabled: 1
|
||||
path: Assets/Scenes/LoadingScreen.unity
|
||||
guid: 6da14f6006606f840b2df7664c50e1ec
|
||||
|
||||
@ -10,6 +10,7 @@ TagManager:
|
||||
- Food
|
||||
- Wood
|
||||
- Rock
|
||||
- PopUp
|
||||
layers:
|
||||
- Default
|
||||
- TransparentFX
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user