Exemplo n.º 1
0
 void Awake()
 {
     _deviceInterface = transform.parent.GetComponent <deviceInterface>();
     rend             = GetComponent <Renderer>();
     offMat           = rend.material;
     glowMat          = new Material(onMat);
     glowMat.SetColor("_TintColor", glowColor);
 }
Exemplo n.º 2
0
    void Awake()
    {
        _deviceInterface = GetComponentInParent <deviceInterface>();

        statusLightMat = statusLight.GetComponent <Renderer>().material;
        statusLightMat.SetFloat("_EmissionGain", .3f);
        statusLightMat.SetColor("_TintColor", connectingColor);

        createMainMidiPanel();
    }