Ejemplo n.º 1
0
 private void OnCollisionStay(Collision other)
 {
     foreach (var tag in tagsToCompare)
     {
         if (other.gameObject.CompareTag(tag) && other.gameObject == objCollided)
         {
             CollisionStay.Invoke();
         }
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 3
0
 private void OnCollisionStay(Collision other) => CollisionStay?.Invoke(other);
 private void OnCollisionStay(Collision collision)
 {
     CollisionStay?.Invoke(this, new CollisionEventArgs(collision));
 }
Ejemplo n.º 5
0
 public void OnColiisionStay(Collision collision)
 {
     CollisionStay.Invoke(collision);
 }
Ejemplo n.º 6
0
 private void OnCollisionStay(Collision collision)
 {
     CollisionStay?.Invoke(gameObject, collision);
 }