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