void Awake() { CCameraShake._instance = this; if (camTransform == null) { camTransform = GetComponent(typeof(Transform)) as Transform; } }
public override void BeginState() { base.BeginState(); _manager.UltMinusSoul(); _manager.UltStartScene.gameObject.SetActive(true); _manager.Rigid.isKinematic = true; //GetComponent<CapsuleCollider>().center = new Vector3(0, 10, 0); pCameraShake = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <CCameraShake>(); //_manager.Rigid.constraints = RigidbodyConstraints.FreezeAll; }
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; }
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>(); }