public void BossAppear() { AudioManager.Instance.PlayBossAppearSound(); isBossAppear = true; // Spawn Boss GridSystem.Point point1 = gridSystem.GetFreeSpace(); if (point1 == null) { return; } Boss newBoss = CreateBoss(point1.x, point1.y); gridSystem.AddObject(point1.x, point1.y, newBoss); }
private void Spawn() { // Spawn Hero GridSystem.Point point = gridSystem.GetFreeSpace(); if (point == null) { return; } Hero newHero = CreateHero(point.x, point.y); gridSystem.AddObject(point.x, point.y, newHero); // Spawn Enemy GridSystem.Point point1 = gridSystem.GetFreeSpace(); if (point1 == null) { return; } Enemy newEnemy = CreateEnemy(point1.x, point1.y); gridSystem.AddObject(point1.x, point1.y, newEnemy); }