Пример #1
0
 private void RemoveListener()
 {
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.ActorAddReply, OnActorAddReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.ActorRemoveReply, OnActorRemoveReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.ActorMoveReply, OnActorMoveReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.CityAddReply, OnCityAddReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.CityRemoveReply, OnCityRemoveReply);
 }
 private void RemoveListener()
 {
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.ActorAiStateHighReply, OnActorAiStateHighReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.UpdateActorInfoReply, OnUpdateActorInfoReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.FightStartReply, OnFightStartReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.FightStopReply, OnFightStopReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.AmmoSupplyReply, OnAmmoSupplyReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.TryCommandReply, OnTryCommandReply);
 }
 void OnDisable()
 {
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.ActorAiStateReply, OnActorAiStateReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.HarvestStartReply, OnHarvestStartReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.HarvestStopReply, OnHarvestStopReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.FightStartReply, OnFightStartReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.FightStopReply, OnFightStopReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.SprayBloodReply, OnSprayBloodReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.UpdateActorInfoReply, OnUpdateActorInfoReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.ActorPlayAniReply, OnActorPlayAniReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.AmmoSupplyReply, OnAmmoSupplyReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.TryCommandReply, OnTryCommandReply);
 }
Пример #4
0
    public void RemoveListener()
    {
        MsgDispatcher.UnRegisterMsg((int)ROOM.CityAdd, OnCityAdd);
        MsgDispatcher.UnRegisterMsg((int)ROOM.CityRemove, OnCityRemove);

        MsgDispatcher.UnRegisterMsg((int)ROOM.ActorAdd, OnActorAdd);
        MsgDispatcher.UnRegisterMsg((int)ROOM.ActorRemove, OnActorRemove);
        MsgDispatcher.UnRegisterMsg((int)ROOM.ActorMove, OnActorMove);
        MsgDispatcher.UnRegisterMsg((int)ROOM.ActorAiState, OnActorAiState);
        MsgDispatcher.UnRegisterMsg((int)ROOM.ActorAiStateHigh, OnActorAiStateHigh);
        MsgDispatcher.UnRegisterMsg((int)ROOM.UpdateActorPos, OnUpdateActorPos);
        MsgDispatcher.UnRegisterMsg((int)ROOM.ActorPlayAni, OnActorPlayAni);
        MsgDispatcher.UnRegisterMsg((int)ROOM.TryCommand, OnTryCommand);

        MsgDispatcher.UnRegisterMsg((int)ROOM.HarvestStart, OnHarvestStart);
        MsgDispatcher.UnRegisterMsg((int)ROOM.HarvestStop, OnHarvestStop);
        MsgDispatcher.UnRegisterMsg((int)ROOM.UpdateRes, OnUpdateRes);
        MsgDispatcher.UnRegisterMsg((int)ROOM.UpdateActionPoint, OnUpdateActionPoint);

        MsgDispatcher.UnRegisterMsg((int)ROOM.FightStart, OnFightStart);
        MsgDispatcher.UnRegisterMsg((int)ROOM.FightStop, OnFightStop);
    }
 public void Fini()
 {
     MsgDispatcher.UnRegisterMsg((int)ROOM.AmmoSupply, OnAmmoSupply);
 }
Пример #6
0
 void RemoveListener()
 {
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.UpdateResReply, OnUpdateResReply);
     MsgDispatcher.UnRegisterMsg((int)ROOM_REPLY.UpdateActionPointReply, OnUpdateActionPointReply);
 }