void DealPoints(Transform collidedWith) { HasPoints points = collidedWith.Require <HasPoints>(); if (points.Deal(source, amount)) { if (afterDealing == AfterDealing.Deactivate) { gameObject.SetActive(false); } else if (afterDealing == AfterDealing.Destroy) { Destroy(gameObject); } } }
public void ItReceives__PointsOf__(float amount, string type) { it.Deal(type, amount); }