Exemple #1
0
    public void Awake()
    {
        m_blackboard     = GetComponent <LaserEnemyBlackboard>();
        m_fightState     = GetComponent <FightFSM>();
        m_wanderSteering = GetComponent <WanderAroundPlusAvoid>();

        m_fightState.enabled     = false;
        m_wanderSteering.enabled = false;

        m_currentState = EStates.INITIAL;
    }
    public void Awake()
    {
        m_currentState = EStates.INITIAL;

        m_blackboard     = GetComponent <LaserEnemyBlackboard>();
        m_companionFight = GetComponent <CompanionFightFSM>();
        m_soloFight      = GetComponent <SoloFightFSM>();

        m_companionFight.enabled = false;
        m_soloFight.enabled      = false;
    }
Exemple #3
0
    public void Awake()
    {
        m_steering   = GetComponent <KeepPosition>();
        m_blackboard = GetComponent <LaserEnemyBlackboard>();

        m_currentState = EState.INITIAL;
        m_nextState    = EState.KEEP_POSITION;

        m_attackTimer      = new Timer(m_blackboard.m_soloAttackCooldown);
        m_steering.enabled = false;
    }
    void Awake()
    {
        m_currentState = EState.INITIAL;

        m_blackboard = GetComponent <LaserEnemyBlackboard>();
        m_laser      = GetComponent <LineRenderer>();
        m_steering   = GetComponent <KeepPosition>();

        m_laser.enabled    = false;
        m_steering.enabled = false;

        m_attackTimer     = new Timer(m_blackboard.m_companionAttackCooldown);
        m_postAttackTimer = new Timer(m_blackboard.m_companionAttackWaitTime);
    }