private void UnReigsterEvents() { if (!_register_flag) { return; } _register_flag = false; GameEventSystem ges = GameEventSystem.Instance; }
public void OnDisable() { GameEventSystem ges = GameEventSystem.Instance; ges.UnRegisterHandler(E_GLOBAL_EVT.camera_set_player, _on_camera_set_player); ges.RegisterHandler(E_GLOBAL_EVT.camera_remove_player, _on_camera_remove_player); ges.UnRegisterHandler(E_GLOBAL_EVT.camera_source_add, _on_add_source); }
private void ReigsterEvents() { if (_register_flag) { return; } _register_flag = true; GameEventSystem ges = GameEventSystem.Instance; }