private void OnEnable() { movement = GetComponent <AgentMovement>(); input = GetComponent <PlayerInput>(); agentAnimations = GetComponent <HumanoidAnimations>(); currentState = movementState; currentState.EnterState(this); AssignInputListeners(); }
private void OnEnable() { movement = GetComponent <AgentMovement>(); input = GetComponent <PlayerInput>(); agentAnimations = GetComponent <HumanoidAnimations>(); currentState = movementState; currentState.EnterState(this); AssignInputListeners(); detectionSystem = GetComponent <DetectionSystem>(); gameManager = FindObjectOfType <GameManager>(); }
private void Start() { characterController = GetComponent <CharacterController>(); agentAnimations = GetComponent <HumanoidAnimations>(); }