Ejemplo n.º 1
0
 void Awake()
 {
     instance = this;
     controller = GetComponent<CharacterController>();
     anim = GetComponent<Animator>();
     pEffect = GetComponent<PlayerEffect>();
     wahleMove = GameObject.FindGameObjectWithTag("WAHLE").GetComponent<WahleMove>();
 }
Ejemplo n.º 2
0
    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>();
    }