Ejemplo n.º 1
0
    private void OnEnable()
    {
        movement        = GetComponent <AgentMovement>();
        input           = GetComponent <PlayerInput>();
        agentAnimations = GetComponent <HumanoidAnimations>();

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