Exemple #1
0
 private void OnCollisionEnter(Collision collision)
 {
     if (collision.collider.gameObject.tag == "Spider" && !reacting)
     {
         if (!reacting)
         {
             reacting       = true;
             reactRemaining = reactTime;
             playerLife.hit();
             StartCoroutine(blink());
             onReactStart.Invoke();
         }
     }
 }