void Awake()
 {
     enemyHealthManager   = GetComponent <EnemyHealthManager>();
     enemy5Animator       = GetComponent <Animator>();
     enemySpriteRenderer  = GetComponent <SpriteRenderer>();
     enemyMovementHandler = GetComponent <EnemyFollowerMovement>();
 }
Ejemplo n.º 2
0
    void Start()
    {
        //transform.LookAt(GameObject.Find("Player").transform);

        strategyA = GetComponent <LightJumpStrategy>();
        strategyB = GetComponent <HeavyJumpStrategy>();
        movement  = GetComponent <EnemyFollowerMovement>();
        rigidB    = GetComponent <Rigidbody>();

        playerMov = GameObject.Find("Player").GetComponent <PlayerMovement>();

        timer = 0;

        isAttacking   = false;
        readyToAttack = true;
        if (spawnAnimation)
        {
            spawnFinished = false;
        }
        else
        {
            spawnFinished = true;
        }

        jumping   = false;
        goingDown = false;
        prevY     = transform.position.y;

        anim = GetComponentInChildren <Animation>();
    }
Ejemplo n.º 3
0
 void Start()
 {
     player    = GameObject.FindGameObjectWithTag("Player").transform;
     playerMov = player.gameObject.GetComponent <PlayerMovement>();
     movement  = GetComponent <EnemyFollowerMovement>();
     attack    = GetComponent <SpiderAttack>();
     anim      = GetComponentInChildren <Animation>();
 }
Ejemplo n.º 4
0
    void Start()
    {
        player   = GameObject.FindGameObjectWithTag("Player");
        atkStrat = GetComponent <IceBearAtkStrat>();
        movement = GetComponent <EnemyFollowerMovement>();
        anim     = GetComponentInChildren <Animator>();

        playerMov = GameObject.Find("Player").GetComponent <PlayerMovement>();
    }
Ejemplo n.º 5
0
    void Start()
    {
        player   = GameObject.FindGameObjectWithTag("Player").transform;
        frog     = GetComponent <Frog>();
        rigidB   = GetComponent <Rigidbody>();
        movement = GetComponent <EnemyFollowerMovement>();

        Jumping = false;
    }
Ejemplo n.º 6
0
    // Use this for initialization
    void Start()
    {
        transform.LookAt(GameObject.Find("Player").transform);
        m_player           = GameObject.FindGameObjectWithTag("Player").transform;
        m_FireBallStrategy = GetComponent <FireBallStrategy> ();
        m_MeleeStrategy    = GetComponent <MeleeStrategy> ();
        m_Movement         = GetComponent <EnemyFollowerMovement> ();
        m_Strategy         = m_FireBallStrategy;
        m_CanAttack        = false;
        anim = GetComponentInChildren <Animator>();


        playerMov = GameObject.Find("Player").GetComponent <PlayerMovement>();
    }