@@ -47,9 +47,9 @@ public override void Awake() {
47
47
mat = transform . GetChild ( 0 ) . GetChild ( 0 ) . GetComponent < Renderer > ( ) . material ;
48
48
lr = GetComponent < LineRenderer > ( ) ;
49
49
cordColor = new Color ( Random . value , Random . value , Random . value ) ;
50
- lr . material . SetColor ( "_TintColor" , cordColor ) ;
51
- mat . SetColor ( "_TintColor" , cordColor ) ;
52
- mouseoverFeedback . GetComponent < Renderer > ( ) . material . SetColor ( "_TintColor" , cordColor ) ;
50
+ // lr.material.SetColor("_TintColor", cordColor);
51
+ // mat.SetColor("_TintColor", cordColor);
52
+ // mouseoverFeedback.GetComponent<Renderer>().material.SetColor("_TintColor", cordColor);
53
53
mouseoverFeedback . SetActive ( false ) ;
54
54
plugTrans = transform . GetChild ( 0 ) ;
55
55
@@ -62,14 +62,14 @@ public void Setup(float c, bool outputting, omniPlug other) {
62
62
Color jackColor = Color . HSVToRGB ( c , .8f , .5f ) ;
63
63
cordColor = Color . HSVToRGB ( c , .8f , .2f ) ;
64
64
65
- mat . SetColor ( "_TintColor" , jackColor ) ;
66
- mouseoverFeedback . GetComponent < Renderer > ( ) . material . SetColor ( "_TintColor" , jackColor ) ;
65
+ // mat.SetColor("_TintColor", jackColor);
66
+ // mouseoverFeedback.GetComponent<Renderer>().material.SetColor("_TintColor", jackColor);
67
67
wireType = masterControl . instance . WireSetting ;
68
68
outputPlug = outputting ;
69
69
otherPlug = other ;
70
70
71
71
if ( outputPlug ) {
72
- lr . material . SetColor ( "_TintColor" , cordColor ) ;
72
+ // lr.material.SetColor("_TintColor", cordColor);
73
73
plugPath . Add ( otherPlug . transform . position ) ;
74
74
75
75
updateLineVerts ( ) ;
@@ -79,7 +79,7 @@ public void Setup(float c, bool outputting, omniPlug other) {
79
79
80
80
public void setLineColor ( Color c ) {
81
81
cordColor = c ;
82
- lr . material . SetColor ( "_TintColor" , c ) ;
82
+ // lr.material.SetColor("_TintColor", c);
83
83
}
84
84
85
85
public void Activate ( omniPlug siblingPlug , omniJack jackIn , Vector3 [ ] tempPath , Color tempColor ) {
@@ -90,9 +90,9 @@ public void Activate(omniPlug siblingPlug, omniJack jackIn, Vector3[] tempPath,
90
90
Color c2 = Color . HSVToRGB ( h , .8f , .2f ) ;
91
91
92
92
cordColor = tempColor ;
93
- lr . material . SetColor ( "_TintColor" , c2 ) ;
94
- mat . SetColor ( "_TintColor" , c1 ) ;
95
- mouseoverFeedback . GetComponent < Renderer > ( ) . material . SetColor ( "_TintColor" , c1 ) ;
93
+ // lr.material.SetColor("_TintColor", c2);
94
+ // mat.SetColor("_TintColor", c1);
95
+ // mouseoverFeedback.GetComponent<Renderer>().material.SetColor("_TintColor", c1);
96
96
97
97
if ( outputPlug ) {
98
98
@@ -209,8 +209,8 @@ void Update() {
209
209
float flowVal = 0 ;
210
210
void lrFlowEffect ( ) {
211
211
flowVal = Mathf . Repeat ( flowVal - Time . deltaTime , 1 ) ;
212
- lr . material . mainTextureOffset = new Vector2 ( flowVal , 0 ) ;
213
- lr . material . SetFloat ( "_EmissionGain" , .1f ) ;
212
+ // lr.material.mainTextureOffset = new Vector2(flowVal, 0);
213
+ // lr.material.SetFloat("_EmissionGain", .1f);
214
214
}
215
215
216
216
Transform closestJack ;
0 commit comments