private void Awake() { _rigid = GetComponent <Rigidbody>(); _anim = GetComponent <Animator>(); _pPlayer = GameObject.FindGameObjectWithTag("Player"); iEffectCnt = 0; DeadDelay = 0.5f; m_Info.CurHP = m_Info.MaxHP; m_Info.CurMoveSpeed = m_Info.MaxMoveSpeed; _cmonstersound = GetComponent <CMonsterSound>(); _pNavMesh = GetComponent <NavMeshAgent>(); _pNavMesh.stoppingDistance = _fMaxAttackDistance; szObjName = gameObject.tag; pCameraShake = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <CCameraShake>(); _SlowEffect = transform.GetChild(4).GetComponent <Transform>(); }
private void Awake() { _rigid = GetComponent <Rigidbody>(); _anim = GetComponent <Animator>(); _pPlayer = GameObject.FindGameObjectWithTag("Player"); _fMonsterShader = transform.GetComponentInChildren <Renderer>().material.GetFloat("_SickButton"); iEffectCnt = 0; _Mstat.CurHP = _Mstat.MaxHP; _Mstat.CurMoveSpeed = _Mstat.MaxMoveSpeed; _cmonstersound = GetComponent <CMonsterSound>(); _pNavMesh = GetComponent <NavMeshAgent>(); _pNavMesh.stoppingDistance = _fMaxAttackDistance; _MonsterUI = GameObject.Find("2_MONSTER").GetComponent <CMonsterUI>(); //_LayerMask = gameObject.layer; //szLayerName = LayerMask.LayerToName(_LayerMask); DeadDelay = 0.5f; pCameraShake = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <CCameraShake>(); MonsterStateVal(); _SlowEffect = transform.GetChild(4).GetComponent <Transform>(); }