using System.Collections; using System.Collections.Generic; using UnityEngine; public class HeroController : MonoBehaviour { Animator anim; // private Rigidbody2D rBody2D; public float moveForce = 1f; public float moveSpeed = 1f; // Start is called before the first frame update void Start() { this.anim = GetComponent(); // this.rBody2D = GetComponent(); } // Update is called once per frame void ..