DeenGames.Utils.Tower.Core.TowerScreen.Activity C# (CSharp) Method

Activity() public method

public Activity ( bool firstTimeCalled ) : void
firstTimeCalled bool
return void
        public override void Activity(bool firstTimeCalled)
        {
            if (this._isFadeActive == true)
            {
                if (this._isFadingIn == false && ((this._fadeOutMode == FadeOutMode.Half && this._fadeOut.Alpha >= 0.5) ||
                    (this._fadeOutMode == FadeOutMode.Full && this._fadeOut.Alpha >= 1)))
                {
                    this._fadeOut.AlphaRate = 0;
                    if (this.FadeOutComplete != null)
                    {
                        this.FadeOutComplete.Invoke(this._fadeOutMode);
                        this._isFadeActive = false;
                    }
                }
                else if (this._isFadingIn == true)
                {
                    if (this._fadeOut.Alpha <= 0)
                    {
                        this._fadeOut.AlphaRate = 0;
                        if (this.FadeInComplete != null)
                        {
                            this.FadeInComplete.Invoke(this._fadeOutMode);
                            this._isFadeActive = false;
                        }
                    }
                }
            }
            base.Activity(firstTimeCalled);
        }