// Use this for initialization
 void Awake()
 {
     _instance    = this;
     _img         = GetComponent <Image>();
     _img.enabled = true;
     _timeEnd     = -1;
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     for (int i = 0; i < buttons.Length; i++)
     {
         int _i = i;
         buttons[i].btn.onClick.AddListener(() => AnimSwitchScene.LoadLevel(buttons[_i].indexLevel));
     }
 }