public void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Player") { aN.currentDrink = aN.maxDrink; npcMove.SetDestination(); } if (other.gameObject.tag == "Player") { aN.currentFood = aN.maxFood; npcMove.SetDestination(); } if (other.gameObject.tag == "Player") { aN.currentJoy = aN.maxJoy; npcMove.SetDestination(); } if (other.gameObject.tag == "Player") { aN.currentRest = aN.maxRest; npcMove.SetDestination(); } }
public void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Adult") { aN.currentDrink = aN.maxDrink; npcMove.SetDestination(); } }
public void OnTriggerEnter(Collider other) { if (other.gameObject.tag == "Adult") { aN.currentRest = aN.maxRest; print("Get this"); npcMove.SetDestination(); } }