Exemplo n.º 1
0
 public void Active(bool _IsOn)
 {
     if (_IsOn)
     {
         transform.GetChild(0).gameObject.SetActive(true);
         groupButton.ActiveButtons(true);
     }
     else
     {
         groupButton.ActiveButtons(false);
         transform.GetChild(0).gameObject.SetActive(false);
     }
 }
Exemplo n.º 2
0
    public void Active(bool _IsOn)
    {
        if (_IsOn)
        {
            startTime = Time.time;

            NoaProcesser.BossProc.pausing = true;
            transform.GetChild(0).gameObject.SetActive(true);
            groupButton.ActiveButtons(true);
        }
        else
        {
            groupButton.ActiveButtons(false);
            transform.GetChild(0).gameObject.SetActive(false);
            NoaProcesser.BossProc.pausing = false;

            allElapsedTime += Time.time - startTime;
        }
    }