This commit is contained in:
KrolMel 2023-01-15 21:57:49 +01:00
parent 41ffa9ecb4
commit 53d47e9d7e
6 changed files with 88 additions and 4934 deletions

View File

@ -258,6 +258,6 @@ MonoBehaviour:
enemyName: enemyName:
maxHealth: {fileID: 11400000, guid: 1a234827b90bfc24da563fbd5ffb412a, type: 2} maxHealth: {fileID: 11400000, guid: 1a234827b90bfc24da563fbd5ffb412a, type: 2}
health: 0 health: 0
baseAttack: 3.5 baseAttack: 4
isKilled: 0 isKilled: 0
MinionName: MinionName:

View File

@ -124209,6 +124209,7 @@ MonoBehaviour:
coords: {x: 0.55, y: -10.48, z: 10} coords: {x: 0.55, y: -10.48, z: 10}
nextMapName: SampleScene nextMapName: SampleScene
respawnCoords: {x: 0, y: -4.5, z: 10} respawnCoords: {x: 0, y: -4.5, z: 10}
isEnabled: 1
--- !u!1 &1193056560 --- !u!1 &1193056560
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -262074,6 +262075,10 @@ PrefabInstance:
propertyPath: m_IsActive propertyPath: m_IsActive
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 1885730412086419543, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3}
propertyPath: m_FontData.m_Font
value:
objectReference: {fileID: 12800000, guid: 4c8158bc12f65384e8b9b461951f45e0, type: 3}
- target: {fileID: 1885730412951883910, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3} - target: {fileID: 1885730412951883910, guid: 65dcf7a268ef38b49ad53e76fd096980, type: 3}
propertyPath: m_TargetGraphic propertyPath: m_TargetGraphic
value: value:
@ -262259,6 +262264,10 @@ PrefabInstance:
propertyPath: m_Text propertyPath: m_Text
value: value:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2338815118713828403, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3}
propertyPath: m_FontData.m_Font
value:
objectReference: {fileID: 12800000, guid: 4c8158bc12f65384e8b9b461951f45e0, type: 3}
m_RemovedComponents: [] m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 1a1f43bbd9c818b4289829b2ec0ea123, type: 3}
--- !u!1001 &5245844912020208448 --- !u!1001 &5245844912020208448
@ -262384,5 +262393,9 @@ PrefabInstance:
propertyPath: m_Text propertyPath: m_Text
value: value:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5245844912540369923, guid: bb5308fba8936aa479d242e38a056110, type: 3}
propertyPath: m_FontData.m_Font
value:
objectReference: {fileID: 12800000, guid: 4c8158bc12f65384e8b9b461951f45e0, type: 3}
m_RemovedComponents: [] m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: bb5308fba8936aa479d242e38a056110, type: 3} m_SourcePrefab: {fileID: 100100000, guid: bb5308fba8936aa479d242e38a056110, type: 3}

File diff suppressed because it is too large Load Diff

View File

@ -61056,6 +61056,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z propertyPath: m_LocalEulerAnglesHint.z
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 9163421032773170070, guid: ef9907b84e7629a4ea317ffe22da98dd, type: 3}
propertyPath: enemyName
value: Mushroom3
objectReference: {fileID: 0}
- target: {fileID: 9163421032773170070, guid: ef9907b84e7629a4ea317ffe22da98dd, type: 3} - target: {fileID: 9163421032773170070, guid: ef9907b84e7629a4ea317ffe22da98dd, type: 3}
propertyPath: homePosition propertyPath: homePosition
value: value:
@ -64879,6 +64883,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z propertyPath: m_LocalEulerAnglesHint.z
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 9163421032773170070, guid: ef9907b84e7629a4ea317ffe22da98dd, type: 3}
propertyPath: enemyName
value: Mushroom4
objectReference: {fileID: 0}
- target: {fileID: 9163421032773170070, guid: ef9907b84e7629a4ea317ffe22da98dd, type: 3} - target: {fileID: 9163421032773170070, guid: ef9907b84e7629a4ea317ffe22da98dd, type: 3}
propertyPath: homePosition propertyPath: homePosition
value: value:
@ -81725,6 +81733,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z propertyPath: m_LocalEulerAnglesHint.z
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 9163421032773170070, guid: ef9907b84e7629a4ea317ffe22da98dd, type: 3}
propertyPath: enemyName
value: Mushroom2
objectReference: {fileID: 0}
- target: {fileID: 9163421032773170070, guid: ef9907b84e7629a4ea317ffe22da98dd, type: 3} - target: {fileID: 9163421032773170070, guid: ef9907b84e7629a4ea317ffe22da98dd, type: 3}
propertyPath: homePosition propertyPath: homePosition
value: value:
@ -109193,6 +109205,10 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z propertyPath: m_LocalEulerAnglesHint.z
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 9163421032773170070, guid: ef9907b84e7629a4ea317ffe22da98dd, type: 3}
propertyPath: enemyName
value: Mushroom1
objectReference: {fileID: 0}
- target: {fileID: 9163421032773170070, guid: ef9907b84e7629a4ea317ffe22da98dd, type: 3} - target: {fileID: 9163421032773170070, guid: ef9907b84e7629a4ea317ffe22da98dd, type: 3}
propertyPath: homePosition propertyPath: homePosition
value: value:

View File

@ -959,9 +959,13 @@ MonoBehaviour:
UiManager: {fileID: 0} UiManager: {fileID: 0}
ChestsToBuildOnScene: ChestsToBuildOnScene:
- ChestName: Prize Chest - ChestName: Prize Chest
ChestPrefab: {fileID: 5754902894522036729, guid: 5225a70fbdf66e745b2ef443328a6a53, type: 3} ChestPrefab: {fileID: 5754902894522036729, guid: 3c4c4514921bad449bbfab46d86ee881, type: 3}
Position: {x: 0.6, y: 75.6, z: 10} Position: {x: 0.6, y: 75.6, z: 10}
Content: [] Content:
- Key: 9
Value: {fileID: 11400000, guid: 5018db07efd330846ab41d3ed70a3c08, type: 2}
- Key: 15
Value: {fileID: 11400000, guid: 5018db07efd330846ab41d3ed70a3c08, type: 2}
convertedData: [] convertedData: []
--- !u!1 &131599442 --- !u!1 &131599442
GameObject: GameObject:

View File

@ -245,6 +245,34 @@ public class Player : MonoBehaviour
lvlUp = true; lvlUp = true;
maxExp = 700; maxExp = 700;
// Add points and refresh view (if opened)
SkillsPointsManger.Instance.AddFreePoints(2);
SkillsPointsManger.Instance.UpdatePanelView();
}
}
else if (lvl == 8)
{
maxExp = 700;
if (exp >= maxExp)
{
lvl = 9;
lvlUp = true;
maxExp = 850;
// Add points and refresh view (if opened)
SkillsPointsManger.Instance.AddFreePoints(2);
SkillsPointsManger.Instance.UpdatePanelView();
}
}
else if (lvl == 9)
{
maxExp = 850;
if (exp >= maxExp)
{
lvl = 10;
lvlUp = true;
maxExp = 1000;
// Add points and refresh view (if opened) // Add points and refresh view (if opened)
SkillsPointsManger.Instance.AddFreePoints(2); SkillsPointsManger.Instance.AddFreePoints(2);
SkillsPointsManger.Instance.UpdatePanelView(); SkillsPointsManger.Instance.UpdatePanelView();