Example #1
0
 public void OnTriggerEnter2D(Collider2D col)
 {
     if (col.gameObject.tag.Equals("enemy"))
     {
         GlobalControl.addPoints();
         isTriggered = true;
     }
 }