Ejemplo n.º 1
0
 /// <summary>
 /// Remove the CommandBuffer on disable to disable the effect
 /// </summary>
 private void OnDisable()
 {
     Instance = null;
     ReleaseAll();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Install the command buffer on enable
 /// </summary>
 private void OnEnable()
 {
     Instance = this;
     RebuildCommandBuffer();
 }