Example #1
0
    // Use this for initialization
    void Start()
    {
        AttachCorrectCameraModule();

        meshFieldGeneratorScript = (MeshFieldGeneratorScript)GameObject.Find("MainMeshField").GetComponent("MeshFieldGeneratorScript");

        GameObject[] tempCameraObjectArray = GameObject.FindGameObjectsWithTag("MainCamera");
        for (int i = 0; i < tempCameraObjectArray.Length; i++)
        {
            mainCameraComponentList.Add((Camera)tempCameraObjectArray[i].GetComponent("Camera"));
        }

        //mainCameraComponent = (Camera)GameObject.Find("Main Camera").GetComponent("Camera");

        for (int i = 0; i < tempCameraObjectArray.Length; i++)
        {
            bloomScriptList.Add((Bloom)tempCameraObjectArray[i].GetComponent("Bloom"));
        }

        GameObject[] meshLightsObjectsArray = GameObject.FindGameObjectsWithTag("MeshLight");

        for (int i = 0; i < meshLightsObjectsArray.Length; i++)
        {
            meshLightsList.Add((Light)(meshLightsObjectsArray[i]).GetComponent("Light"));
        }

        creatureManagerEmittedParts = (CreatureManagerEmittedParts)GameObject.FindWithTag("CreatureManager").GetComponent("CreatureManagerEmittedParts");

        editor = (GeneralEditorScript)GameObject.FindWithTag("Editor").GetComponent("GeneralEditorScript");

        Screen.showCursor = false;
        Screen.lockCursor = true;
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        editor       = (GeneralEditorScript)GameObject.FindWithTag("Editor").GetComponent("GeneralEditorScript");
        playerScript = (PlayerScript)GameObject.FindWithTag("Player").GetComponent("PlayerScript");

        initialRotation = transform.rotation;
    }
    // Use this for initialization
    void Start()
    {
        editor = (GeneralEditorScript)GameObject.FindWithTag("Editor").GetComponent("GeneralEditorScript");
        playerScript = (PlayerScript)GameObject.FindWithTag("Player").GetComponent("PlayerScript");

        initialRotation = transform.rotation;
    }
Example #4
0
    // Use this for initialization
    void Start()
    {
        currentIndex = minIndex;
        rangeMarker  = (GameObject)Instantiate(rangeMarker, new Vector3(), Quaternion.identity);

        audioDirector = (AudioDirectorScript)GameObject.FindWithTag("AudioDirector").GetComponent("AudioDirectorScript");
        generalEditor = (GeneralEditorScript)GetComponent("GeneralEditorScript");
    }
Example #5
0
    // Use this for initialization
    void Start()
    {
        //mp3Importer = (MP3Import)GetComponent("MP3Import");
        audioDirector      = (AudioDirectorScript)GameObject.FindWithTag("AudioDirector").GetComponent("AudioDirectorScript");
        audioListener      = (AudioListener)GameObject.FindWithTag("AudioDirector").GetComponent("AudioListener");
        genralEditorScript = (GeneralEditorScript)GetComponent("GeneralEditorScript");

        if (isActive)
        {
            Screen.showCursor = true;
            Screen.lockCursor = false;
        }
    }
    // Use this for initialization
    void Start()
    {
        audioDirector          = (AudioDirectorScript)GameObject.FindWithTag("AudioDirector").GetComponent("AudioDirectorScript");
        audioListener          = (AudioListener)GameObject.FindWithTag("AudioDirector").GetComponent("AudioListener");
        genralEditorScript     = (GeneralEditorScript)GetComponent("GeneralEditorScript");
        liveAudioInputSelector = GetComponent <LiveAudioInputSelectorScript>();
        cameraTypeSelector     = GetComponent <CameraTypeSelectorScript>();

        if (isActive)
        {
            Screen.showCursor = true;
            Screen.lockCursor = false;
        }
    }
    // Use this for initialization
    void Start()
    {
        currentIndex = minIndex;
        rangeMarker = (GameObject)Instantiate(rangeMarker, new Vector3(), Quaternion.identity);

        audioDirector =  (AudioDirectorScript)GameObject.Find("AudioDirector").GetComponent("AudioDirectorScript");
        generalEditor = (GeneralEditorScript)GetComponent("GeneralEditorScript");
    }
    // Use this for initialization
    void Start()
    {
        audioDirector = (AudioDirectorScript) GameObject.FindWithTag("AudioDirector").GetComponent("AudioDirectorScript");
        audioListener = (AudioListener) GameObject.FindWithTag("AudioDirector").GetComponent("AudioListener");
        genralEditorScript = (GeneralEditorScript)GetComponent("GeneralEditorScript");
        liveAudioInputSelector = GetComponent<LiveAudioInputSelectorScript>();
        cameraTypeSelector = GetComponent<CameraTypeSelectorScript>();

        if(isActive)
        {
            Screen.showCursor = true;
            Screen.lockCursor = false;
        }
    }
    // Use this for initialization
    void Start()
    {
        mp3Importer = (MP3Import)GetComponent("MP3Import");
        audioDirector = (AudioDirectorScript) GameObject.Find("AudioDirector").GetComponent("AudioDirectorScript");
        audioListener = (AudioListener) GameObject.Find("AudioDirector").GetComponent("AudioListener");
        genralEditorScript = (GeneralEditorScript)GetComponent("GeneralEditorScript");

        if(isActive)
        {
            Screen.showCursor = true;
            Screen.lockCursor = false;
        }
    }
    // Use this for initialization
    void Start()
    {
        AttachCorrectCameraModule();

        meshFieldGeneratorScript = (MeshFieldGeneratorScript)GameObject.Find("MainMeshField").GetComponent("MeshFieldGeneratorScript");

        GameObject[] tempCameraObjectArray =  GameObject.FindGameObjectsWithTag("MainCamera");
        for(int i = 0; i < tempCameraObjectArray.Length; i++)
            mainCameraComponentList.Add( (Camera)tempCameraObjectArray[i].GetComponent("Camera") );

        //mainCameraComponent = (Camera)GameObject.Find("Main Camera").GetComponent("Camera");

        for(int i = 0; i < tempCameraObjectArray.Length; i++)
            bloomScriptList.Add( (Bloom)tempCameraObjectArray[i].GetComponent("Bloom") );

        GameObject[] meshLightsObjectsArray =  GameObject.FindGameObjectsWithTag("MeshLight");

        for(int i =0; i < meshLightsObjectsArray.Length; i++)
        {
            meshLightsList.Add( (Light)(meshLightsObjectsArray[i]).GetComponent("Light") );
        }

        creatureManagerEmittedParts = (CreatureManagerEmittedParts)GameObject.FindWithTag("CreatureManager").GetComponent("CreatureManagerEmittedParts");

        editor = (GeneralEditorScript)GameObject.FindWithTag("Editor").GetComponent("GeneralEditorScript");

        Screen.showCursor = false;
        Screen.lockCursor = true;
    }
Example #11
0
    // Use this for initialization
    void Start()
    {
        meshFieldGeneratorScript = (MeshFieldGeneratorScript)GameObject.Find("MainMeshField").GetComponent("MeshFieldGeneratorScript");

        GameObject[] tempCameraObjectArray =  GameObject.FindGameObjectsWithTag("MainCamera");
        for(int i = 0; i < tempCameraObjectArray.Length; i++)
            mainCameraComponentList.Add( (Camera)tempCameraObjectArray[i].GetComponent("Camera") );

        //mainCameraComponent = (Camera)GameObject.Find("Main Camera").GetComponent("Camera");

        for(int i = 0; i < tempCameraObjectArray.Length; i++)
            bloomScriptList.Add( (Bloom)tempCameraObjectArray[i].GetComponent("Bloom") );

        GameObject[] meshLightsObjectsArray =  GameObject.FindGameObjectsWithTag("MeshLight");

        for(int i =0; i < meshLightsObjectsArray.Length; i++)
        {
            meshLightsList.Add( (Light)(meshLightsObjectsArray[i]).GetComponent("Light") );
        }

        creatureManagerScript = (CreatureManagerScript)GameObject.Find("CreatureManager").GetComponent("CreatureManagerScript");
        mainCameraGameObject =  GameObject.FindWithTag("MainCamera"); //GameObject.Find("Main Camera");

        if(isOVR)
            ovrCameraController = (OVRCameraController)GameObject.Find("OVRCameraController").GetComponent("OVRCameraController");

        editor = (GeneralEditorScript)GameObject.Find("Editor_Importer").GetComponent("GeneralEditorScript");

        Screen.showCursor = false;
        Screen.lockCursor = true;
    }
 // Use this for initialization
 void Start()
 {
     editor = (GeneralEditorScript)GameObject.Find("Editor_Importer").GetComponent("GeneralEditorScript");
     playerScript = (PlayerScript)GameObject.FindGameObjectWithTag("Player").GetComponent("PlayerScript");
 }