자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public void Die() { FindObjectOfType <ScoreKeeper>().AddScore(scoreValue); analyticsManager.AddEnemies(); GameObject explosion = Instantiate(explosionParticles, transform.position, Quaternion.identity); AudioSource.PlayClipAtPoint(deathSound, Camera.main.transform.position, deathSoundVolume); Destroy(gameObject); Destroy(explosion, durationOfExplosion); }