Ejemplo n.º 1
0
            public void Unregister()
            {
                if (gameEvent != null)
                {
                    gameEvent.RemoveListener(Handler);
                }

                if (cursorState != null)
                {
                    cursorState.RemoveListener(HandleState);
                }

                if (variable != null)
                {
                    variable.RemoveListener(HandleVariable);
                }
            }
Ejemplo n.º 2
0
 private void OnDestroy()
 {
     PlayerHealthShieldChangedEvent.RemoveListener(PlayerHealthShield_OnHealthShieldChanged);
     PlayerHealthShildRepairEvent.RemoveListener(PlayerHealthShield_OnRepair);
 }
Ejemplo n.º 3
0
 public void OnDestroy()
 {
     GameFinished.RemoveListener(this);
 }