protected override void RunBeforeAwake() { isLuaController = true; isEnable = true; //EventSender.onEvent += OnEvent; EventSender.Registere(this); }
void OnDestroy() { EventSender.Remove(this); //EventSender.onEvent -= OnEvent; base.OnDestroy(); }