private void AdjustComponentsForDashState()
        {
            disabledComponents.Add(agent.RequestComponent <AgentHealth>());
            disabledComponents.Add(agent.RequestComponent <CharacterDashComponent>());
            disabledComponents.Add(agent.RequestComponent <CharacterAttackComponent>());
            disabledComponents.Add(agent.RequestComponent <CharcterSmokebombComponent>());
            disabledComponents.Add(agent.RequestComponent <CharacterMovementComponent>());

            agent.RemoveComponent <AgentHealth>();
            agent.RemoveComponent <CharacterDashComponent>();
            agent.RemoveComponent <CharacterAttackComponent>();
            agent.RemoveComponent <CharcterSmokebombComponent>();
            agent.RemoveComponent <CharacterMovementComponent>();
        }
Exemple #2
0
 private void Start()
 {
     staminaComponent = observedAgent.RequestComponent <CharacterStaminaComponent>();
 }
 private void Start()
 {
     inventoryComponent = inventoryCarrier.RequestComponent <CharacterInventoryComponent>();
 }