void OnCollisionEnter2D(Collision2D c) { if (c.gameObject.CompareTag("Iten")) { trashCan.controllerTrashCan.Hurt(); controllerEarth.Hurt(); BehaviourAnimation.Float(gameObject, "Life", trashCan.life); } }
public void Point() { FacadeTrashCan.Score(classTrashCan); BehaviourAnimation.Float(earth, "Life", classTrashCan.life); }