Esempio n. 1
0
    private IEnumerator KillPlayerCoroutine()
    {
        PlayerPrefs.SetInt("YourScore", m_totalPoints);
        Destroy(this.gameObject);
        ExplosionMaster.Explode(transform.position);
        //TODO: include code for animation here
        yield return(new WaitForSeconds(DEATH_ANIMATION_TIME));

        SceneManager.LoadScene(Levels.GAME_OVER_LEVEL);
    }
Esempio n. 2
0
File: Car.cs Progetto: phelow/OhDeer
 void Explode()
 {
     ExplosionMaster.Explode(transform.position);
     //TODO: put in explosion mechanics
     Destroy(this.gameObject);
 }
Esempio n. 3
0
 void Start()
 {
     instance = this;
 }