Beispiel #1
0
 private void Initialzie()
 {
     _instance     = this;
     meshRenderer  = this.GetComponent <MeshRenderer>();
     propertyBlock = new MaterialPropertyBlock();
     colorPropId   = Shader.PropertyToID("_Color");
 }
Beispiel #2
0
 private void OnDestroy()
 {
     _instance = null;
 }