Ejemplo n.º 1
0
    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>();
    }
Ejemplo n.º 2
0
    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>();
    }