private void Awake() { if (instance == null) { instance = this; } }
void Start() { workPopupManager = popup.GetComponent <WorkPopupManager>(); newWorkPopupManager = newPopup.GetComponent <WorkPopupManager>(); gameSystem = GameObject.FindWithTag("GameController").GetComponent <MainMoneySystem>(); workManager = GameObject.FindWithTag("EventManager").GetComponent <WorkManager>(); workText = workBtn.transform.GetChild(0).GetComponent <Text>(); }
private void Start() { mainSystem = GameObject.FindWithTag("GameController").GetComponent <MainMoneySystem>(); }
private void Start() { mainSystem = GameObject.FindWithTag("GameController").GetComponent <MainMoneySystem>(); workController = GameObject.FindWithTag("WorkController").GetComponent <WorkController>(); StartCoroutine(workGageUpdater()); }
private void Start() { MainSystem = GameObject.FindWithTag("GameController").GetComponent <MainMoneySystem>(); for (int i = 0; i < nN + nR + nSR + nU + nE; i++) { if (i < nN) { normalTable.Add(i, 0); } else if (i < nR) { normalTable.Add(i, 1); } else if (i < nSR) { normalTable.Add(i, 2); } else if (i < nU) { normalTable.Add(i, 3); } else { normalTable.Add(i, 4); } } for (int i = 0; i < pN + pR + pSR + pU + pE; i++) { if (i < pN) { premiumTable.Add(i, 0); } else if (i < pR) { premiumTable.Add(i, 1); } else if (i < pSR) { premiumTable.Add(i, 2); } else if (i < pU) { premiumTable.Add(i, 3); } else { premiumTable.Add(i, 4); } } foreach (Slave s in slaveList.slavePack) { switch (s.star) { case 1: normal.Add(s.key); break; case 2: rare.Add(s.key); break; case 3: superRare.Add(s.key); break; case 4: unique.Add(s.key); break; case 5: epic.Add(s.key); break; } } }
private void Awake() { vec2 = SlavesList.transform.position; vec2 = SlaveItemList.transform.position; mainSystem = GameObject.FindWithTag("GameController").GetComponent <MainMoneySystem>(); }
private void Awake() { popup = GameObject.FindWithTag("TitlePopup").GetComponent <TitlePopupObj>(); mainSystem = GameObject.FindWithTag("GameController").GetComponent <MainMoneySystem>(); }