// Update is called once per frame void Update() { if (canControl) { CheckRunning(); CheckJump(); HandleJetpack(); } CheckShop(); DetermineVectors(); //groundCheck(); //print(grounded); //moveDir = new Vector3(Input.GetAxisRaw("Horizontal"),0f,0f).normalized;//Input.GetAxisRaw("Vertical"),0f).normalized; //jumpDir = new Vector3(0f,Input.GetAxisRaw("Vertical"),0f).normalized; playerGravity.Attract(transform); inOrbit = true; SetAnims(); if (Input.GetButtonUp("Fire1")) { coinSoundRef.StopWeaponSound(); } }
// Update is called once per frame void Update() { //DetermineVectors(); localGravity.Attract(transform); }