void RemoveButton() { Event_Manager.ClockWheel_Change(ClockWheelState.Stop); Button btn = Event_Manager.Get_Button(); btn.onClick.RemoveAllListeners(); }
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; } } }