예제 #1
0
 void SetMovingToWaitLocationInWaitingArea(WaitingArea waitingAreaEnterred)
 {
     waitingTarget = waitingAreaEnterred.RegisterPersonForWaiting(this);
     SetAgentControl(true);                                 //we were getting some people under physics control entering waiting areas and trying to SetDestination
     nmAgent.SetDestination(waitingTarget);
     rb.constraints = RigidbodyConstraints.FreezePositionY; //TODO: [this is required to get people who have fallen back to y lock] MEDIUM PRIORITY believe this is what is causing some people to penetrate the platform slightly (they must be reentering at wrong height)
 }