예제 #1
0
 private void OnCollisionStay(Collision other)
 {
     foreach (var tag in tagsToCompare)
     {
         if (other.gameObject.CompareTag(tag) && other.gameObject == objCollided)
         {
             CollisionStay.Invoke();
         }
     }
 }
예제 #2
0
 internal void Collision(Collider2D other, CollisionPairState state, HitState hitState)
 {
     if (state.enter)
     {
         CollisionEnter?.Invoke(other, hitState);
     }
     if (state.stay)
     {
         CollisionStay?.Invoke(other, hitState);
     }
     if (state.exit)
     {
         CollisionExit?.Invoke(other, hitState);
     }
 }
예제 #3
0
 private void OnCollisionStay(Collision other) => CollisionStay?.Invoke(other);
 private void OnCollisionStay(Collision collision)
 {
     CollisionStay?.Invoke(this, new CollisionEventArgs(collision));
 }
예제 #5
0
 public void OnColiisionStay(Collision collision)
 {
     CollisionStay.Invoke(collision);
 }
예제 #6
0
 private void OnCollisionStay(Collision collision)
 {
     CollisionStay?.Invoke(gameObject, collision);
 }