void Start() { // Fetch the needed scripts from the "Player" object GameObject Player = GameObject.FindGameObjectWithTag("Player"); CycleICs = Player.GetComponent <CycleInitialConditions>(); // Fetch the needed scripts from the "MainCamera" object _Camera = GameObject.FindGameObjectWithTag("MainCamera"); NBodySim = _Camera.GetComponent <NBodySim>(); }
private bool RightArrowDown; // load up the next file void Start() { // Fetch the needed scripts from the "Player" object GameObject Player = GameObject.FindGameObjectWithTag("Player"); MouseAndControllerLook = Player.GetComponent <SimpleSmoothMouseAndControllerLook>(); ControllerInput = Player.GetComponent <SimpleXboxControllerInput>(); CycleICs = Player.GetComponent <CycleInitialConditions>(); 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"); NBodySim = Camera.GetComponent <NBodySim>(); }