Esempio n. 1
0
    void RemoveButton()
    {
        Event_Manager.ClockWheel_Change(ClockWheelState.Stop);
        Button btn = Event_Manager.Get_Button();

        btn.onClick.RemoveAllListeners();
    }
Esempio n. 2
0
 void OnTriggerEnter2D(Collider2D coll)
 {
     //  Debug.Log("col " + coll.gameObject.name);
     if (coll.gameObject.tag == "Player")
     {
         Event_Manager.ClockWheel_Change(ClockWheelState.Start);
         Button btn = Event_Manager.Get_Button();
         if (!Triggered)
         {
             btn.onClick.AddListener(DoAnim);
             Triggered = true;
         }
     }
 }