public Overlay() { // @todo #1 update toggle button colors Branch = new ClickUIBranch("Overlay", (int)ClickUIPriorities.Overlay); _clockUi = new ClockUI(); _togglePad = new TogglePad(); _moneyUI = new MoneyUI(); _energyUI = new EnergyUI(); _hungerUI = new HungerUI(); Branch.Add(_togglePad.Branch); }
// Start is called before the first frame update void Start() { startTurn = Random.Range(0, profile.Length); clockUI = FindObjectOfType <ClockUI>(); for (int i = 0; i < playerProfile.Length; i++) { profile[i] = playerProfile[i].GetComponent <Profile>(); } profile[startTurn].myTurn = true; }
private void Awake() { if (instance != null && instance != this) { Destroy(this.gameObject); return; } else { instance = this; } Clock.fillAmount = 0; }
// Start is called before the first frame update void Start() { clockUI = clock.GetComponent <ClockUI>(); }