Skip to content

Instantly share code, notes, and snippets.

@elringus
Created September 16, 2017 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elringus/8c9501b85dc936b4c042179019d163b5 to your computer and use it in GitHub Desktop.
Save elringus/8c9501b85dc936b4c042179019d163b5 to your computer and use it in GitHub Desktop.
using UnityEngine;
namespace BlendModes
{
[RequireComponent(typeof(BlendModeEffect))]
public class TintColorUpdater : MonoBehaviour
{
private BlendModeEffect blendModeEffect;
private void Awake ()
{
blendModeEffect = GetComponent<BlendModeEffect>();
}
private void Update ()
{
blendModeEffect.TintColor = blendModeEffect.TintColor;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment