Exemplo n.º 1
0
 private void Awake()
 {
     grid         = GetComponent <Grid>();
     seekerRigid  = seeker.GetComponent <Rigidbody>();
     target       = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
     pBossManager = seeker.GetComponent <CBossManager>();
 }
Exemplo n.º 2
0
    private void Awake()
    {
        _instance          = this;
        _anim              = GetComponentInChildren <Animator>();
        _stat.CurHP        = _stat.MaxHP;
        _rigid             = GetComponentInParent <Rigidbody>();
        _pathfinding       = GameObject.Find("AStar").GetComponent <Pathfinding>();
        _PlayerMgr         = GameObject.FindGameObjectWithTag("Player").GetComponent <CPlayerManager>();
        pPlayerTransform   = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>();
        grid               = GameObject.Find("AStar").GetComponent <Grid>();
        _stat.CurMoveSpeed = _stat.MaxMoveSpeed;
        RespawnPoint       = GameObject.FindGameObjectsWithTag("RespawnPoint");
        Ready_BossState();
        pCameraShake = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <CCameraShake>();

        DeadDelay = 4.5f;
    }
Exemplo n.º 3
0
    void Start()
    {
        CBossManager._instance = this;

        m_bFootAttackCamera = false;
        m_fFootAttackTimer  = 0;

        m_fMaxDistance = 13;
        m_fMinDistance = 4;

        _CBossAni    = GetComponent <CBossAni>();
        _CBoss_Skill = GetComponent <CBoss_Skill>();
        _CBossPatten = GetComponent <CBossPatten>();
        _CBossFMS    = GetComponent <CBossFMS>();
        _CBossMat    = GetComponent <CBossMat>();

        m_fMoveSpeed = 4f;
        m_fHp        = 100f;
        m_bAttack    = false;
    }
Exemplo n.º 4
0
 private void Awake()
 {
     _BossManager = GetComponent <CBossManager>();
 }
Exemplo n.º 5
0
 private void Awake()
 {
     _manager  = GetComponent <CBossManager>();
     DestPoint = GameObject.FindGameObjectWithTag("DestPoint").GetComponent <Transform>();
 }