Skip to content

Commit

Permalink
Merge pull request #205 from 2024FALL-SWPP/ref/seozzi/Anomaly29
Browse files Browse the repository at this point in the history
이상현상 29 refactoring
  • Loading branch information
seozzi authored Dec 15, 2024
2 parents 8023157 + a244b62 commit b7be20e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion 302/Assets/Scripts/SpecificAnomalyManager/Anomaly29Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,23 @@ public class Anomaly29Controller : AbstractAnomalyObject
private bool isPlayerDead = false;
private bool isStageCleared = false;

void Start()
public override bool StartAnomaly()
{
bool res = base.StartAnomaly();

gameManager = GameObject.Find("GameManager").GetComponent<GameManager>();
playerController = GameObject.Find("Player").GetComponent<PlayerController>();
audioSource = gameObject.GetComponent<AudioSource>();

// 바나나 스폰 시작
StartCoroutine(SpawnBananas());

return res;
}

private void Start()
{
StartAnomaly();
}

private IEnumerator SpawnBananas()
Expand Down

0 comments on commit b7be20e

Please sign in to comment.