void Start() { gameController = GameController_OLD.instance; collisionInfo = new CollisionInfo(); gravity = -(2 * maxJumpHeight) / Mathf.Pow(timeToJumpApex, 2); maxJumpVelocity = Mathf.Abs(gravity) * timeToJumpApex; minJumpVelocity = Mathf.Sqrt(2 * Mathf.Abs(gravity) * minJumpHeight); //gameController.gravity = gravity; }
void Awake() { instance = this; }