Pathfinding.RVO.RVOController.OnEnable C# (CSharp) Метод

OnEnable() публичный Метод

public OnEnable ( ) : void
Результат void
		public void OnEnable () {
			//We might have an rvoAgent
			//which was disabled previously
			//if so, we can simply add it to the simulation again
			if (rvoAgent != null) {
				simulator.AddAgent (rvoAgent);
			} else {
				rvoAgent = simulator.AddAgent (transform.position);
			}
			
			UpdateAgentProperties ();
			rvoAgent.Position = transform.position;
			adjustedY = rvoAgent.Position.y;
		}