public override void Update(GameTime _gameTime) { this.playStartupBackground(); if (this.Game.IsActive == false) { return; } if (Player.LifePoint == 0 || Computer.LifePoint == 0) { SceneManager.GetInstance().ReplaceScene(new MenuScene()); } base.Update(_gameTime); YNDialog.Update(_gameTime); if (Player.IsTurn == true) { Player.Update(_gameTime); // Computer.Update(_gameTime); ///s if (Player.IsTurn == false) { Computer.IsTurn = true; } if (Player.Phase != ePhase.STARTUP) { if (Player.Status == ePlayerStatus.IDLE) { this.phaseSelector.Update(_gameTime); } } } else { Player.Update(_gameTime); // Computer.Update(_gameTime); // 4 chỗ cmt này không được để ở ngoài if if (Computer.IsTurn == false) { Player.IsTurn = true; } } this.phaseSelector.Update(Player); this.phaseSelector.Update(Computer); battlePhase.Update(Player, Computer); battlePhase.Update(_gameTime); DetailSideBar.Update(_gameTime); }