public override void StateUpdate() { gameMainProgram.Update(); // 触发Dragon出现事件 if (!hasTrigger && gameMainProgram.playerMgr.CurrentPlayer.GameObjectInScene.transform.position.z < zTrigger) { hasTrigger = true; // 创建Monster gameMainProgram.enemyMgr.AddEnemy(new EnemyDragon(gameMainProgram.resourcesMgr.LoadAsset (@"Enemys\DragonBoss", false, new Vector3(100, 8, 160), Quaternion.Euler(0, -180, 0)))); CoroutineMgr.Instance.StartCoroutine(PlayBGM()); } }
public override void StateUpdate() { gameMainProgram.Update(); }