Exemplo n.º 1
0
    void Start()
    {
        c    = GetComponent <Camera> ();
        rota = transform.parent;
        DontDestroyOnLoad(rota.parent.gameObject);
        frameParent = GameObject.Find("QuadMaster").transform;
        debugFrame  = GameObject.Find("Debug").GetComponent <MeshRenderer> ();
        hsv         = gameObject.AddComponent <HSVtoRGB> ();

        debugFrame.enabled = false;
        canvas.SetActive(false);
        Cursor.visible = false;

        LoadParameters();
        SetSliders();

        hasStarted = true;
    }
Exemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        //,transform.position.y,transform.position.z
        //cam.gameObject.GetComponent<Contour>().lineColor= HSVtoRGB.HSVToRGB(transform.position.x,.8f,.8f);
        float h1 = transform.position.y;
        float h2 = h1 + .33f;

        if (h2 >= 1f)
        {
            h2 -= 1f;
        }

        if (skybox)
        {
            RenderSettings.skybox.SetColor(skyboxCol1, HSVtoRGB.HSVToRGB(h1, .8f, .8f));
            RenderSettings.skybox.SetColor(skyboxCol2, HSVtoRGB.HSVToRGB(h2, .8f, .8f));
        }
        else
        {
            if (reakt)
            {
                colorObject.GetComponent <MeshRenderer>().material.SetColor(col1Name, _color1);
                colorObject.GetComponent <MeshRenderer>().material.SetColor(col2Name, reaktC2);
            }
            else
            {
                if (!particles)
                {
                    colorObject.GetComponent <MeshRenderer>().material.SetColor(col1Name, HSVtoRGB.HSVToRGB(h1, .8f, .8f));
                    colorObject.GetComponent <MeshRenderer>().material.SetColor(col2Name, HSVtoRGB.HSVToRGB(h2, .8f, .8f));
                }
                else
                {
                    colorObject.GetComponent <ParticleSystemRenderer>().material.SetColor(col1Name, HSVtoRGB.HSVToRGB(h1, .8f, .8f));
                    colorObject.GetComponent <ParticleSystemRenderer>().material.SetColor(col2Name, HSVtoRGB.HSVToRGB(h2, .8f, .8f));
                    //_Color_copy _Color
                }
            }
        }
    }
Exemplo n.º 3
0
    void Start()
    {
        HSVConverter = GetComponent <HSVtoRGB> ();

        SetStartValues();
    }
Exemplo n.º 4
0
	void Start () {
		HSVConverter = GetComponent<HSVtoRGB> ();
		dw = GetComponent<DataWrite> ();
		musics = ShuffleACList (musics);
		Setup ();
	}
Exemplo n.º 5
0
 void Start()
 {
     rota = transform.parent;
     DontDestroyOnLoad(rota.gameObject);
     hsv = gameObject.AddComponent <HSVtoRGB> ();
 }