public void GenerateCovid(CovidType type, Vector3 position) { switch (type) { case CovidType.FAST: Instantiate(_covidFastObject, position, _covidFastObject.transform.rotation); break; case CovidType.MEDIUM: Instantiate(_covidMediumObject, position, _covidMediumObject.transform.rotation); break; case CovidType.BOSS: Instantiate(_covidBossObject, position, _covidBossObject.transform.rotation); break; } }
public void GenerateRandomCovid() { CovidType type = GetRandomCovidType(_random); GenerateCovid(type); }
public void GenerateCovid(CovidType type) { GenerateCovid(type, CreateNewCovidPosition()); }