Update to assignTarget

This commit is contained in:
Antoine H 2021-01-12 10:20:30 +01:00
parent 2dbb5e4dfe
commit 1696694db5
2 changed files with 26 additions and 15 deletions

View file

@ -82,13 +82,13 @@ public class Client_controller : MonoBehaviour, IUsable
}
else
{
Debug.Log(gameObject.name+" doesn't want that");
Debug.Log(gameObject.name+" doesn't want that "+object_used.name);
return false;
}
}
else
{
Debug.Log(gameObject.name+" doesn't want that");
Debug.Log(gameObject.name+" doesn't want that "+object_used.name);
return false;
}
}
@ -146,7 +146,7 @@ public class Client_controller : MonoBehaviour, IUsable
{
//Leave tavern
status = "leaving";
agent.SetDestination(ClientManager.Instance.assignTarget(agent.destination)); //Request next target
agent.SetDestination(ClientManager.Instance.assignTarget(agent.destination, true)); //Request next target
}
else if(UIWaitingTimer != null) //Update UI Waiting timer
UIWaitingTimer.SetValue(waitTimer/waitingTime);
@ -173,7 +173,7 @@ public class Client_controller : MonoBehaviour, IUsable
//Leave tavern
status = "leaving";
agent.SetDestination(ClientManager.Instance.assignTarget(agent.destination)); //Request next target
agent.SetDestination(ClientManager.Instance.assignTarget(agent.destination, true)); //Request next target
}
}