//[System.NonSerialized] public Vector2 moveDir; private void Start() { rb = GetComponent <Rigidbody2D>(); //character = GetComponent<Character>(); character = GetComponent <CharacterMovement>(); }
void Start() { anim = GetComponent <Animator>(); charMovement = GetComponent <CharacterMovement>(); }