void InitGame() { roundTimeLeft = roundTime; playerScore1 = new PlayerScore(0, true); playerScore2 = new PlayerScore(1, false); if (playerScore2.isHuman == playerScore1.isHuman) { playerScore2.isHuman = !playerScore1.isHuman; } }
public void Die() { PlayerScore.AddScore(scoreAmnt); AudioSource s = destroy.Source; if (s) { s.transform.parent = null; Destroy(s.gameObject, 1.5f); } destroy?.PlaySFX(); Instantiate(particles, transform.position, transform.rotation); Destroy(gameObject); }