Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
    // 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;
    }
Exemplo n.º 3
0
    private void Awake()
    {
        if (instance != null && instance != this)
        {
            Destroy(this.gameObject);
            return;
        }
        else
        {
            instance = this;
        }

        Clock.fillAmount = 0;
    }
Exemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     clockUI = clock.GetComponent <ClockUI>();
 }