using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Experimental.XR.Interaction; public class HeroController : MonoBehaviour { Animator anim; private Rigidbody2D rBody2D; public float moveForce = 10f; public float moveSpeed = 1f; private bool isJump = false; float h; float jumpForce = 1f; //State: 0:idle,1:run,2:jump // Start is called before the firs..