public void MonsterDown(LTHEnemy target) { beatManager.RemoveToList(monster); player.opponent = null; monster = null; //게임 종료 if (monsterCount == 0) { GameOver(Result.BigSuccessful); } }
public void CreateMonster(ActionBeat[][] actions, int health) { GameObject tmp = Instantiate(monsterProto); monster = tmp.GetComponent <LTHEnemy>(); // 위치 잡아주기 tmp.transform.position = startPoint.position; monster.startPoint = startPoint.position; monster.endPoint = endPoint.position; // 패턴 정해주기 monster.Actions = actions; // 체력 설정 monster.health = health; // 상호인식 player.opponent = monster; monster.opponent = player; monster.beatManager = beatManager; monster.gameManager = this; // 등록 및 등장 beatManager.AddToList(monster); monster.Appear(7); }