Exemplo n.º 1
0
    void OnCollisionEnter2D(Collision2D other)
    {
        if (other.gameObject.tag == "ghost")
        {
            livesManager.death();
            Destroy(this.gameObject);

            Debug.Log("collided");
        }
    }