Death() public method

public Death ( ) : void
return void
Example #1
0
 void OnCollisionEnter2D(Collision2D col)
 {
     if (col.gameObject.tag == "Obstacle")
     {
         animHandler.Death();
     }
 }
Example #2
0
 public void OnCollisionEnter2D(Collision2D col)
 {
     if (col.gameObject.tag == "Player")
     {
         animHandler.Death();
     }
 }