Subversion Repository Public Repository

Nextrek

Diff Revisions 167 vs 168 for /3DSpace/Assets/Resources/Holographic/Scripts/transparency.cs

Diff revisions: vs.
  @@ -7,7 +7,7 @@
7 7 void Awake()
8 8 {
9 9 a= sliders.opacity;
10 - this.renderer.material.color = new Color(this.renderer.material.color.r,this.renderer.material.color.b,this.renderer.material.color.g,.65f*a);
10 + this.GetComponent<Renderer>().material.color = new Color(this.GetComponent<Renderer>().material.color.r,this.GetComponent<Renderer>().material.color.b,this.GetComponent<Renderer>().material.color.g,.65f*a);
11 11 }
12 12
13 13 void Start ()
  @@ -23,7 +23,7 @@
23 23
24 24 if (a!=sliders.opacity){
25 25 a= sliders.opacity;
26 - this.renderer.material.color = new Color(this.renderer.material.color.r,this.renderer.material.color.b,this.renderer.material.color.g,.65f*a);
26 + this.GetComponent<Renderer>().material.color = new Color(this.GetComponent<Renderer>().material.color.r,this.GetComponent<Renderer>().material.color.b,this.GetComponent<Renderer>().material.color.g,.65f*a);
27 27 }
28 28
29 29 }