Esempio n. 1
0
 void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject == Player.player && !Player.playerClass.dead)
     {
         Instantiate(burst, transform.position, Quaternion.identity);
         dontRespawnClass.DontRespawn();
         gameObject.SetActive(false);
     }
 }
Esempio n. 2
0
    IEnumerator LongKill()
    {
        if (!dead)
        {
            base.Die(true);
            dontRespawnClass.DontRespawn();
            Destroy(GetComponent <KillerOnCollision>());
            yield return(new WaitForSeconds(2));

            gameObject.SetActive(false);
        }
    }
Esempio n. 3
0
 void DontRespawn()
 {
     dontRespawnClass.DontRespawn();
 }