protected virtual void OnEnable() { character = channels as CharacterChannels; agent = GetComponent <NavMeshAgent>(); if (!agent) { Debug.LogError("Character navigator requires NavMeshAgent component."); } agent.updatePosition = agent.updateRotation = agent.updateUpAxis = false; }
public override void Initialize() { base.Initialize(); character = channels as CharacterChannels; }
public override void Initialize(GameObject obj) { base.Initialize(obj); character = channels as CharacterChannels; }