protected virtual void DisableUI(WavesGame data, WavesGame group)
        {
            var handler = new DisableUI();

            handler.System = this;
            handler.Event  = data;
            handler.Group  = group;
            StartCoroutine(handler.Execute());
        }
        protected virtual void WavesGameComponentDestroyed(WavesGame data, WavesGame group)
        {
            var handler = new WavesGameComponentDestroyed();

            handler.System = this;
            handler.Event  = data;
            handler.Group  = group;
            StartCoroutine(handler.Execute());
        }
        protected virtual void SetScoreLabel(WavesGame data, WavesGame group, PropertyChangedEvent <System.Int32> value)
        {
            var handler = new SetScoreLabel();

            handler.System   = this;
            handler.Event    = data;
            handler.Group    = group;
            handler.OldValue = value.PreviousValue;
            handler.NewValue = value.CurrentValue;
            StartCoroutine(handler.Execute());
        }
        protected void DisableUIFilter(WavesGame data)
        {
            var GroupWavesGame = WavesGameManager[data.EntityId];

            if (GroupWavesGame == null)
            {
                return;
            }
            if (!GroupWavesGame.Enabled)
            {
                return;
            }
            this.DisableUI(data, GroupWavesGame);
        }
        protected void SetScoreLabelFilter(WavesGame data, PropertyChangedEvent <System.Int32> value)
        {
            var GroupWavesGame = WavesGameManager[data.EntityId];

            if (GroupWavesGame == null)
            {
                return;
            }
            if (!GroupWavesGame.Enabled)
            {
                return;
            }
            this.SetScoreLabel(data, GroupWavesGame, value);
        }
        protected void WavesGameComponentDestroyedFilter(WavesGame data)
        {
            var GroupWavesGame = WavesGameManager[data.EntityId];

            if (GroupWavesGame == null)
            {
                return;
            }
            if (!GroupWavesGame.Enabled)
            {
                return;
            }
            this.WavesGameComponentDestroyed(data, GroupWavesGame);
        }
Beispiel #7
0
        protected virtual void WavesGameSystemGameOverHandler(uFrameECSExample.GameOver data, WavesGame group)
        {
            var handler = new WavesGameSystemGameOverHandler();

            handler.System = this;
            handler.Event  = data;
            handler.Group  = group;
            StartCoroutine(handler.Execute());
        }