Ejemplo n.º 1
0
    private void OnCollisionEnter2D(Collision2D other)
    {
        ButtController playerButt = other.gameObject.GetComponent <ButtController>();

        if (playerButt)
        {
            // Let's NOT use the singleton and instead fire an event..
            GameManager.Instance.KillPlayer(playerButt);
        }
    }
Ejemplo n.º 2
0
 public void KillPlayer(ButtController buttController)
 {
     buttController.DisableMovement();
 }