using System.Collections;

using System.Collections.Generic;

using UnityEngine;


public class Player : MonoBehaviour

{

public float speed;

float hAxis;

float vAxis;

bool wDown;


Vector3 = moveVec;

Animator anim;


void Start()

{

anim = GetComponentInChildren<Animator>();

}


void Update()

{

hAxis = Input.GetAxisRaw("Horizontal");

vAxis = Input.GetAxisRaw("Vertical");

wDown = Input.GetButton("Walk");


moveVec = new Vector3(hAxis, 0, vAxis).normalized;


transform.position += moveVec * speed * Time.deltaTime;


anim.SetBool("isRun", moveVec != Vector3.zero);

anim.SetBool("isWalk", wDown);


}

}

에서 anim.SetBool("isRun", moveVec != Vector3.zero); 이쪽줄에 null 오류가 나네요 ㅠㅠ 어디서 잘못된건가요?