Example #1
0
 public void Update()
 {
     sound.PlayBGM("titlebgm");
     if (inputState.IsKeyDown(Keys.Space))
     {
         this.isEnd = true;
         sound.PlaySE("titlese");
     }
 }
Example #2
0
        public void Update()
        {
            sound.PlayBGM("gameplaybgm");
            ////敵の発生
            //enemyGenerator.AddEnemys(gameManager, characterManager);

            characterManager.Update();

            //if (endCount < 0)
            //{
            //    if (characterManager.IsCharacterDead(CharacterID.Player))
            //    {
            //        endCount = 2 * 60;//2秒
            //    }
            //    if (!bossFind)
            //    {
            //        if (!characterManager.IsCharacterDead(CharacterID.EnemyBoss))
            //        {
            //            bossFind = true;
            //        }
            //    }
            //    else
            //    {
            //        if (characterManager.IsCharacterDead(CharacterID.EnemyBoss))
            //        {
            //            endCount = 2 * 60;//2秒
            //        }
            //    }
            //}
            //else if (endCount > 0)
            //{
            //    endCount--;
            //}
            //else if(endCount == 0)
            //{
            //    this.isEnd = true;
            //    sound.PlaySE("gameplayse");
            //}

            //gameManager.SetHiScore(gameManager.GetScore());
        }