예제 #1
0
 protected void RemoveItem(UnitModifier modifier)
 {
     if (dynamics.TryGetValue(modifier, out var val))
     {
         Destroy(val);
         dynamics.Remove(modifier);
     }
 }
예제 #2
0
 private void OnCollisionExit2D(Collision2D other)
 {
     contactPoints.Remove(other.collider);
 }