Esempio n. 1
0
 void OnTriggerEnter2D(Collider2D col)
 {
     if (col.tag == "Projectile")
     {
         //print("death by bullet");
         floaty.Hit(2);
     }
     else if (col.tag == "Player")
     {
         //floaty.Hit(2);
         //print("Death by feet");
     }
 }