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