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);
            }
        }
    }
Esempio n. 2
0
 public void ItReceives__PointsOf__(float amount, string type)
 {
     it.Deal(type, amount);
 }