private void Awake() { HP_Person.LoadData(); GameState = true; HP_G = HP_Person.HP_Gerl; EnemyGameObj[HP_Person.NumberEnemy].SetActive(true); if (HP_Person.NumberEnemy == 0) { HP_E = HP_Person.HP_Spawn_Start * HP_Person.LVLPers; } else if (HP_Person.NumberEnemy == 1) { HP_E = HP_Person.HP_Pig_Start * HP_Person.LVLPers; } else if (HP_Person.NumberEnemy == 2) { HP_E = HP_Person.HP_Usakula_Start * HP_Person.LVLPers; } HP_Gerl.maxValue = HP_G; HP_Enemy.maxValue = HP_E; DamagePers = HP_Person.Damage_Sword[(int)HP_Person.NumberSworld]; Deffence = HP_Person.Deffens; Deffence_Standart_Lvl = Deffence; if (HP_Person.Skills[0]) { ActivElement[0].SetActive(true); DamagePers += (int)((DamagePers / 100.0f) * 5.0f); } Weapon[(int)HP_Person.NumberSworld].SetActive(true); }
private void Start() { PersStat.LoadData(); if (PersStat.NextLVL_BOOK_XP == 0.0f) { File.Delete(System.IO.Path.Combine(Application.persistentDataPath, "SaveBOOK.Json")); } }
private void Awake() { StatPers.LoadData(); }