예제 #1
0
        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;
        }
예제 #2
0
        public override void Initialize()
        {
            base.Initialize();

            character = channels as CharacterChannels;
        }
예제 #3
0
        public override void Initialize(GameObject obj)
        {
            base.Initialize(obj);

            character = channels as CharacterChannels;
        }