void Awake() { treadmill = GameObject.FindGameObjectWithTag("ground").GetComponent <treadmill_controller>(); rb = GetComponent <Rigidbody2D>(); controls = new Controls(); controls.Gameplay.Jump.performed += lmd => Jump(); }
// Start is called before the first frame update void Start() { treadmill = GameObject.FindGameObjectWithTag("ground").GetComponent <treadmill_controller>(); }