Beispiel #1
0
 private void OnCollisionEnter2D(Collision2D collision)
 {
     CanDashIn = collision.transform.GetComponent <IInteractable>();
     if (DashDelay >= Time.time)
     {
         if (CanDashIn != null)
         {
             CanDashIn.DashIn();
         }
     }
 }