Пример #1
0
 // Start is called before the first frame update
 void Awake()
 {
     if (material == null)
     {
         material = new Material(Shader.Find("Hidden/BrightnessShader"));
     }
     dispObj = GetComponentInParent <Gimbl.DisplayObject>();
 }