private void Awake()
        {
            SRenderer = GetComponent <StateRenderer>();

            // START SHADER SETUP

            MaterialProperties = new MaterialPropertyBlock();
            RaptureValueId     = Shader.PropertyToID("_AscensionAmount");

            MaterialProperties.SetFloat(RaptureValueId, 0);
            SpriteComponent.SetPropertyBlock(MaterialProperties);

            // END SHADER SETUP
        }
Example #2
0
 public void OnEnable()
 {
     this.stateRenderer = this.GetComponent <StateRenderer>();
 }