Example #1
0
        private void DeregisterMessages()
        {
            MessageCenter center = GameContext.messageCenter;

            center.RemoveListener <LoadSceneMessage>(HandleLoadSceneMessage);
        }
Example #2
0
        private void DeregisterMessages()
        {
            MessageCenter center = GameContext.messageCenter;

            center.RemoveListener <TouchBeganMessage>(HandleTouchBeganMessage);
        }
Example #3
0
        private void RegisterMessages()
        {
            MessageCenter center = GameContext.messageCenter;

            center.AddListener <LoadSceneMessage>(HandleLoadSceneMessage);
        }