private void Awake() { grid = GetComponent <Grid>(); seekerRigid = seeker.GetComponent <Rigidbody>(); target = GameObject.FindGameObjectWithTag("Player").GetComponent <Transform>(); pBossManager = seeker.GetComponent <CBossManager>(); }
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; }
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; }
private void Awake() { _BossManager = GetComponent <CBossManager>(); }
private void Awake() { _manager = GetComponent <CBossManager>(); DestPoint = GameObject.FindGameObjectWithTag("DestPoint").GetComponent <Transform>(); }