Example #1
0
 void OnTriggerEnter2D(Collider2D col)
 {
     if (hit && col.CompareTag("Player"))
     {
         Walk p = col.GetComponent <Walk> ();
         p.Kicked(transform.up * (3000 * (1 + owner.Food)));
         hit = false;
     }
 }