private bool RightBumperDown; // decrease colour scaling precision void Start() { // Fetch the needed scripts from the "Player" object GameObject Player = GameObject.FindGameObjectWithTag("Player"); CyclePlots = Player.GetComponent <CyclePlots>(); // Fetch the needed scripts from the "MainCamera" object _Camera = GameObject.FindGameObjectWithTag("MainCamera"); NBodyPlotter = _Camera.GetComponent <NBodyPlotter>(); }
private bool RightArrowDown; // load up the next file void Start() { // Fetch the needed scripts from the "Player" object GameObject Player = GameObject.FindGameObjectWithTag("Player"); CyclePlots = Player.GetComponent <CyclePlots>(); ControllerInput = Player.GetComponent <SimpleXboxControllerInput>(); MouseAndControllerLook = Player.GetComponent <SimpleSmoothMouseAndControllerLook>(); MouseAndControllerLook.enabled = false; // disable MouseAndControllerLook by default to avoid disorientation of the person with the headset on // Fetch the needed script from the "Main Camera" object GameObject Camera = GameObject.FindGameObjectWithTag("MainCamera"); NBodyPlotter = Camera.GetComponent <NBodyPlotter>(); }