Update() public method

public Update ( ) : void
return void
Ejemplo n.º 1
0
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="gameTime">時間</param>
        public void Update(GameTime gameTime)
        {
            if (currentScene == null)
            {
                return;
            }
            currentScene.Update(gameTime);

            if (currentScene.IsEnd())
            {
                if (!isFade)
                {
                    fade.GetFadeSwitch = E_FadeSwitch.On;
                    isFade             = true;
                }
                else
                {
                    if (fade.GetFadeState == E_FadeState.In)
                    {
                        Change(currentScene.Next());
                    }
                }
            }
            if (fade.GetFadeSwitch == E_FadeSwitch.Off)
            {
                return;
            }
            fade.Update();
        }