void Start() { hp = T2.Stat.MAX_HP; dp = T2.Stat.INIT_DP; pp = T2.Stat.MAX_PP; ap = T2.Stat.MAX_AP; ep = T2.Stat.MAX_EP; curLayerState = LayerState.normal; moveCtrl = GetComponent <T2.MoveCtrl>(); controller = GetComponent <CharacterController>(); line = GetComponent <LineRenderer>(); //마우스 커서 숨기기 //Cursor.visible = false; ctrlPossible.Run = true; ctrlPossible.Sprint = true; ctrlPossible.Attack = true; ctrlPossible.MouseRot = true; ctrlPossible.Skill = true; ChangeState(State.idle); }
void Start() { moveCtrfl = GetComponent <T2.MoveCtrl>(); basicAttack = GetComponent <T2.BasicAttack>(); moveCtrfl = GetComponent <T2.MoveCtrl>(); animator = GetComponentInChildren <Animator>(); mgr = GetComponent <T2.Manager>(); trPlayerModel = GameObject.FindGameObjectWithTag(Tags.PlayerModel).transform; fSpeed = moveCtrfl.GetMoveSpeed(); }
void Awake() { curSkill = T2.Skill.IdleSkill.GetInstance(); oPlayer = GameObject.FindGameObjectWithTag(Tags.Player); trPlayerModel = GameObject.FindGameObjectWithTag(Tags.PlayerModel).transform; mgr = GetComponent <T2.Manager>(); moveCtrl = GetComponent <T2.MoveCtrl>(); controller = GetComponent <CharacterController>(); basicAttack = GetComponent <T2.BasicAttack>(); animator = GetComponentInChildren <Animator>(); cam = Camera.main; trCamPivot = GameObject.FindGameObjectWithTag(Tags.CameraTarget).transform; }
void Start() { iMaxMagazine = T2.Stat.MAX_MAGAZINE; moveCtrl = GetComponent <T2.MoveCtrl>(); mgr = GetComponent <T2.Manager>(); trPlayerModel = GameObject.FindGameObjectWithTag(Tags.PlayerModel).transform; animator = GetComponentInChildren <Animator>(); cam = Camera.main; followCam = cam.GetComponent <FollowCam>(); fOrizinDist = followCam.GetDist(); fOrizinFOV = cam.fieldOfView; fCamDist = followCam.GetDist(); bulletPool.CreatePool(oBulletPref, iMaxMagazine); flarePool.CreatePool(oFlarePref, iMaxMagazine * 2); muzzleFlash[0].enabled = false; muzzleFlash[1].enabled = false; }