Exemple #1
0
 public void SetupActor(CharacterNode actor)
 {
     if (_actor != null)
     {
         _actor.Entity.RemoveObserver(this);
         MessageKit.removeObserver(Messages.ModifiersUpdated, UpdateMods);
     }
     _actor = actor;
     if (_actor == null)
     {
         return;
     }
     _actor.Entity.AddObserver(this);
     MessageKit.addObserver(Messages.ModifiersUpdated, UpdateMods);
 }
        public static void RemoveObserver(this LockType lockType, System.Action <string> delToggle, System.Action <string> delUnlocked, System.Action <string> delLocked)
        {
            switch (lockType)
            {
            case LockType.Switch:
                MessageKit <string> .removeObserver(Messages.SwitchToggle, delToggle);

                break;

            case LockType.Key:
                MessageKit <string> .removeObserver(Messages.Unlocked, delUnlocked);

                MessageKit <string> .removeObserver(Messages.Locked, delLocked);

                break;
            }
        }
Exemple #3
0
 public override void Dispose()
 {
     base.Dispose();
     MessageKit.removeObserver(Messages.PauseChanged, CheckPause);
 }
Exemple #4
0
 public void OnPoolDespawned()
 {
     MessageKit.removeObserver(Messages.PauseChanged, CheckPause);
 }
 void OnDisable()
 {
     MessageKit.removeObserver(Messages.PauseChanged, CheckPause);
 }
Exemple #6
0
 public void OnPoolDespawned()
 {
     MessageKit <Transform> .removeObserver(Messages.CameraFocusChanged, Follow);
 }