Ejemplo n.º 1
0
 public void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.tag == "Player")
     {
         player = GameObject.FindGameObjectWithTag ("Player").GetComponent<PlayerModel>();
         player.DamagePlayer(damage);
     }
 }