Exemplo n.º 1
0
        public override Playable CreatePlayable(UnityEngine.Playables.PlayableGraph graph, GameObject owner)
        {
            var playable = ScriptPlayable <LightControlBehaviour> .Create(graph);

            var lightControlBehaviour = playable.GetBehaviour();

            lightControlBehaviour.light     = light.Resolve(graph.GetResolver());
            lightControlBehaviour.color     = color;
            lightControlBehaviour.intensity = intensity;
            return(playable);
        }