void Awake() { instance = this; controller = GetComponent<CharacterController>(); anim = GetComponent<Animator>(); pEffect = GetComponent<PlayerEffect>(); wahleMove = GameObject.FindGameObjectWithTag("WAHLE").GetComponent<WahleMove>(); }
void Awake() { instance = this; anim = gameObject.GetComponentInChildren<Animator>(); camTr = GameObject.FindGameObjectWithTag("MainCamera").transform; playerTr = GameObject.Find("Luna_Head_Point").transform; fsmBase = GetComponent<FSMBase>(); idle = GetComponent<WahleIdle>(); move = GetComponent<WahleMove>(); attack = GetComponent<WahleAttack>(); }