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