// protected override void Awake() { // base.Awake(); // controller = GetComponent<MovementController>(); eventPlayer = GetComponent <EventPlayer>(); waypointTracker = GetComponent <WaypointTracker>(); }
protected override void Awake() { base.Awake(); aiAgent = GetComponent <AIAgent>(); waypointTracker = GetComponent <WaypointTracker>(); platformer = GetComponent <Platformer>(); platformer.onPlatformEnd += OnPlatformEnd; agent = GetComponentInChildren <NavMeshAgent>(); agent.updateRotation = false; agent.updatePosition = false; turner = GetComponent <Turner>(); animationMover = GetComponent <CharacterAnimatorMover>(); animationMover.SetMoveModifier(ModifyCharacterMovement); }