void Awake() { Instance = this; #if mobile mobile_Root.SetActive(true); //设置事件 EventTriggerListener.Get(button_fire.gameObject).onDown = Event_FireBt_Press; EventTriggerListener.Get(button_fire.gameObject).onUp = Event_FireBt_Release; #else mobile_Root.SetActive(false); #endif }