void Start() { WarriorClass = GameObject.Find("character"); wrr = WarriorClass.GetComponent <Warrior>(); LvlManagerClass = GameObject.Find("Main Camera"); lvlmng = LvlManagerClass.GetComponent <LvlManager>(); unlockedAb = new bool[3]; //инициализация levelAb = new int[3]; unlockedAb = wrr.unlockedabilities; levelAb = wrr.levelofabilities; _level = wrr.level; UnblockButton1.SetActive(false); UnblockButton2.SetActive(false); UnblockButton3.SetActive(false); Skill1.interactable = false; Skill2.interactable = false; Skill3.interactable = false; LvlUpSkill1.SetActive(false); LvlUpSkill2.SetActive(false); LvlUpSkill3.SetActive(false); }
void Start() { WarriorClass = GameObject.Find("character"); wrr = WarriorClass.GetComponent <Warrior>(); LvlManagerClass = GameObject.Find("Main Camera"); lvlmng = LvlManagerClass.GetComponent <LvlManager>(); }
void Start() { APIClass = GameObject.Find("API"); api = APIClass.GetComponent <MainAPI>(); WarriorClass = GameObject.Find("character"); wrr = WarriorClass.GetComponent <Warrior>(); LvlManagerClass = GameObject.Find("Main Camera"); lvlmng = LvlManagerClass.GetComponent <LvlManager>(); unlockedAb = new bool[3]; //инициализация levelAb = new int[3]; unlockedAb = wrr.unlockedabilities; levelAb = wrr.levelofabilities; _level = wrr.level; string str = GlobalControl.Instance.LevelGrade; char[] charArray = str.ToCharArray(0, 5); int firstChar = (int)Char.GetNumericValue(charArray[0]); int secondChar = (int)Char.GetNumericValue(charArray[2]); int thirdChar = (int)Char.GetNumericValue(charArray[4]); _level = wrr.level; unlockedAb[0] = true; unlockedAb[1] = true; unlockedAb[2] = true; levelAb[0] = firstChar; levelAb[1] = secondChar; levelAb[2] = thirdChar; UnblockButton1.SetActive(false); UnblockButton2.SetActive(false); UnblockButton3.SetActive(false); Skill1.interactable = false; Skill2.interactable = false; Skill3.interactable = false; LvlUpSkill1.SetActive(false); LvlUpSkill2.SetActive(false); LvlUpSkill3.SetActive(false); Img1Skill1Lvl.SetActive(false); Img1Skill2Lvl.SetActive(false); Img1Skill3Lvl.SetActive(false); Img1Skill4Lvl.SetActive(false); Img2Skill1Lvl.SetActive(false); Img2Skill2Lvl.SetActive(false); Img2Skill3Lvl.SetActive(false); Img2Skill4Lvl.SetActive(false); Img3Skill1Lvl.SetActive(false); Img3Skill2Lvl.SetActive(false); Img3Skill3Lvl.SetActive(false); Img3Skill4Lvl.SetActive(false); }