public RunFileSystemViewer() { Console.Title = "FileSystemViewer"; Console.SetBufferSize(Console.WindowWidth, Console.WindowHeight); Console.CursorVisible = false; keys = new KeyAssign(fileViewer); fileViewer.Expand(); ++fileViewer.SelectionPosition; }
void Start() { // Script attached to Player object controller = GetComponent<Controller2D>(); gravity = -(2 * maxJumpHeight) / Mathf.Pow(timeToJumpApex, 2); maxJumpVelocity = Mathf.Abs(gravity) * timeToJumpApex; minJumpVelocity = Mathf.Sqrt(2 * Mathf.Abs(gravity) * minJumpHeight); //print("Gravity: " + gravity + " Jump Velocity: " + maxJumpVelocity); // Start player off with a full jetpack jetpack = GetComponent<Jetpack>(); jetpack.Fill(); // Button Assignment object keyAssign = FindObjectOfType<KeyAssign>(); // Set Quick Fire Special move to disabled so it can be called at a later time quickFire = GetComponent<QuickFireManager>(); quickFire.enabled = false; anim = GetComponent<Animator>(); }