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 Awake() { basicAttack = GameObject.FindGameObjectWithTag(Tags.Player).GetComponent <T2.BasicAttack>(); }