// Use this for initialization void Start() { var ps = gameObject.GetComponent <Utils.JfSelectable>(); ps.listener = this; shader = gameObject.GetComponent <Utils.ColorTheSelectable>(); shader.SetInMaskTex(BorderTexture); shader.SetOutMaskTex(DiceTexture); shader.SetTopColor(StarColor); shader.SetSurfColor(StarColor); shader.SetBackColor(BackColor); shader.SetDeepColor(DeepColor); }
// Use this for initialization void Start() { var ps = gameObject.GetComponent <Utils.JfSelectable>(); ps.listener = this; shader = gameObject.GetComponent <Utils.ColorTheSelectable>(); shader.SetInMaskTex(SelectingTex); shader.SetOutMaskTex(BallTex); shader.SetDeepColor(DeepColor); shader.SetBackColor(BackColor); shader.SetSurfColor(SurfaceColor); shader.SetTopColor(TopColor); }