Ejemplo n.º 1
0
 public override void CloseListener()
 {
     GlobalMessenger.RemoveListener(EventNames.EnterQuantumMoon, () => Handler(EnterLeaveType.EnterMoon));
     GlobalMessenger.RemoveListener(EventNames.ExitQuantumMoon, () => Handler(EnterLeaveType.ExitMoon));
     GlobalMessenger.RemoveListener(EventNames.QSBEnterShrine, () => Handler(EnterLeaveType.EnterShrine));
     GlobalMessenger.RemoveListener(EventNames.QSBExitShrine, () => Handler(EnterLeaveType.ExitShrine));
 }
 private void OnDestroy()
 {
     _interactVolume.OnPressInteract -= OnPressInteract;
     _interactVolume.OnGainFocus     -= OnGainFocus;
     GlobalMessenger.RemoveListener(OWEvents.SuitUp, OnSuitUp);
     GlobalMessenger.RemoveListener(OWEvents.RemoveSuit, OnRemoveSuit);
 }
Ejemplo n.º 3
0
 public void Reset()
 {
     if (_playerController == null)
     {
         return;
     }
     _netAnim.enabled                      = false;
     _playerController.OnJump             -= OnJump;
     _playerController.OnBecomeGrounded   -= OnBecomeGrounded;
     _playerController.OnBecomeUngrounded -= OnBecomeUngrounded;
     GlobalMessenger.RemoveListener("SuitUp", OnSuitUp);
     GlobalMessenger.RemoveListener("RemoveSuit", OnSuitDown);
 }
Ejemplo n.º 4
0
 private void OnDestroy()
 {
     _netAnim.enabled = false;
     if (_playerController == null)
     {
         return;
     }
     _playerController.OnJump             -= OnJump;
     _playerController.OnBecomeGrounded   -= OnBecomeGrounded;
     _playerController.OnBecomeUngrounded -= OnBecomeUngrounded;
     GlobalMessenger.RemoveListener(EventNames.SuitUp, OnSuitUp);
     GlobalMessenger.RemoveListener(EventNames.RemoveSuit, OnSuitDown);
 }
        private void OnSceneLoaded(OWScene oldScene, OWScene newScene, bool isUniverse)
        {
            if (newScene == OWScene.EyeOfTheUniverse)
            {
                GlobalMessenger <EyeState> .AddListener(OWEvents.EyeStateChanged, OnEyeStateChanged);
            }
            else
            {
                GlobalMessenger <EyeState> .RemoveListener(OWEvents.EyeStateChanged, OnEyeStateChanged);
            }

            if (isUniverse)
            {
                InitPauseMenus();
                return;
            }

            if (newScene == OWScene.TitleScreen)
            {
                MakeTitleMenus();
            }
        }
 public override void CloseListener()
 => GlobalMessenger <Vector3, Quaternion, float> .RemoveListener(EventNames.QSBStartStatue, Handler);
 public override void CloseListener()
 {
     GlobalMessenger <short, float> .RemoveListener(EventNames.QSBAnimTrigger, Handler);
 }
Ejemplo n.º 8
0
 public override void CloseListener() => GlobalMessenger <string> .RemoveListener(EventNames.QSBPlayerJoin, Handler);
 public override void CloseListener()
 {
     GlobalMessenger.RemoveListener(EventNames.EquipTranslator, HandleEquip);
     GlobalMessenger.RemoveListener(EventNames.UnequipTranslator, HandleUnequip);
 }
 public override void CloseListener()
 {
     GlobalMessenger <uint, uint[]> .RemoveListener(EventNames.QSBPlayerLeave, Handler);
 }
 private void OnDestroy()
 {
     GlobalMessenger.RemoveListener("DialogueConditionsReset", new Callback(OnDialogueConditionsReset));
     GlobalMessenger <DeathType> .RemoveListener("PlayerDeath", new Callback <DeathType>(OnPlayerDeath));
 }
Ejemplo n.º 12
0
 public override void CloseListener() => GlobalMessenger <NomaiTextType, int, int> .RemoveListener(EventNames.QSBTextTranslated, Handler);
Ejemplo n.º 13
0
 public override void CloseListener()
 => GlobalMessenger <int> .RemoveListener(EventNames.QSBMoveToCarry, Handler);
        public override void CloseListener()
        {
            GlobalMessenger <Signalscope> .RemoveListener(EventNames.EquipSignalscope, HandleEquip);

            GlobalMessenger.RemoveListener(EventNames.UnequipSignalscope, HandleUnequip);
        }
Ejemplo n.º 15
0
 public override void CloseListener() => GlobalMessenger.RemoveListener(EventNames.QSBServerSendPlayerStates, Handler);
Ejemplo n.º 16
0
 public void OnDestroy()
 {
     QSBSceneManager.OnSceneLoaded -= OnSceneLoaded;
     GlobalMessenger.RemoveListener(EventNames.RestartTimeLoop, OnLoopStart);
     GlobalMessenger.RemoveListener(EventNames.WakeUp, OnWakeUp);
 }
 public override void CloseListener() => GlobalMessenger <int, uint> .RemoveListener(EventNames.QSBQuantumAuthority, Handler);
Ejemplo n.º 18
0
 public override void CloseListener() => GlobalMessenger <int, int, Quaternion> .RemoveListener(EventNames.QSBSocketStateChange, Handler);
Ejemplo n.º 19
0
 public override void CloseListener()
 => GlobalMessenger <int, Vector3, Vector3, Sector> .RemoveListener(EventNames.QSBDropItem, Handler);
Ejemplo n.º 20
0
 public override void CloseListener()
 {
     GlobalMessenger <bool> .RemoveListener(EventNames.QSBPlayerReady, Handler);
 }
Ejemplo n.º 21
0
 public override void CloseListener() => GlobalMessenger <float> .RemoveListener(EventNames.QSBCrouch, Handler);
Ejemplo n.º 22
0
 public override void CloseListener() => GlobalMessenger <int> .RemoveListener(EventNames.QSBOrbUser, Handler);
Ejemplo n.º 23
0
 public override void CloseListener()
 {
     GlobalMessenger <float, int> .RemoveListener(EventNames.QSBServerTime, Handler);
 }
Ejemplo n.º 24
0
 public override void CloseListener()
 => GlobalMessenger <int, int, SocketEventType> .RemoveListener(EventNames.QSBSocketItem, Handler);
 public override void CloseListener() => GlobalMessenger <int> .RemoveListener(EventNames.QSBPlayerEntangle, Handler);
 public override void CloseListener() => GlobalMessenger <MarshmallowEventType> .RemoveListener(EventNames.QSBMarshmallowEvent, Handler);
Ejemplo n.º 27
0
 public override void CloseListener() => GlobalMessenger <SignalFrequency> .RemoveListener(EventNames.QSBIdentifyFrequency, Handler);
Ejemplo n.º 28
0
		public override void CloseListener() => GlobalMessenger<int, int>.RemoveListener(EventNames.QSBMultiStateChange, Handler);
        public override void CloseListener()
        {
            GlobalMessenger <ProbeLauncher> .RemoveListener(EventNames.ProbeLauncherEquipped, HandleEquip);

            GlobalMessenger <ProbeLauncher> .RemoveListener(EventNames.ProbeLauncherUnequipped, HandleUnequip);
        }
 public override void CloseListener() => GlobalMessenger <SignalName> .RemoveListener(EventNames.QSBIdentifySignal, Handler);