Exemplo n.º 1
0
    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();
        }
    }
Exemplo n.º 2
0
 public void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Adult")
     {
         aN.currentDrink = aN.maxDrink;
         npcMove.SetDestination();
     }
 }
Exemplo n.º 3
0
 public void OnTriggerEnter(Collider other)
 {
     if (other.gameObject.tag == "Adult")
     {
         aN.currentRest = aN.maxRest;
         print("Get this");
         npcMove.SetDestination();
     }
 }