public void OnRBumper(CallbackContext context) //this is coded a bit shit; currently it is forced for Drop Ball and Gather Ball to be mapped to the same button, potentially move sorting logic into Mover class or another class { pressRBCounter++; //Debug.Log("RB presses: " + pressCounterRB.ToString()); if (mover != null) { if (pressRBCounter == 1) //onEntered: when button is first pressed { Debug.Log(mover.GetPlayerIndex().ToString() + ": OnRBumper(); time: " + System.DateTime.Now + " ; pressRBCounter: " + pressRBCounter.ToString()); if (!mover.hasBall) { mover.AttemptHit();// } } if (pressRBCounter == 2) //onPressed: when button is first pressed but after onEntered; if you hold down button it wont do anything further until released { // } if (pressRBCounter == 3) //onRelease: when button is released { // pressRBCounter = 0; //on release prep it so the next press takes them to onEntered again } } }