private void CreateActivationPlayable(GameObject root, PlayableGraph graph, List <Playable> outplayables)
        {
            ScriptPlayable <ActivationControlPlayable> val = ActivationControlPlayable.Create(graph, root, postPlayback);

            if (PlayableExtensions.IsValid <ScriptPlayable <ActivationControlPlayable> >(val))
            {
                outplayables.Add(val);
            }
        }
Exemple #2
0
        private void CreateActivationPlayable(GameObject root, PlayableGraph graph, List <Playable> outplayables)
        {
            ScriptPlayable <ActivationControlPlayable> playable = ActivationControlPlayable.Create(graph, root, this.postPlayback);

            if (!playable.IsValid <ScriptPlayable <ActivationControlPlayable> >())
            {
                return;
            }
            outplayables.Add((Playable)playable);
        }
        public static ScriptPlayable <ActivationControlPlayable> Create(PlayableGraph graph, GameObject gameObject, PostPlaybackState postPlaybackState)
        {
            if (gameObject == null)
            {
                return(ScriptPlayable <ActivationControlPlayable> .Null);
            }
            ScriptPlayable <ActivationControlPlayable> result = ScriptPlayable <ActivationControlPlayable> .Create(graph);

            ActivationControlPlayable behaviour = result.GetBehaviour();

            behaviour.gameObject   = gameObject;
            behaviour.postPlayback = postPlaybackState;
            return(result);
        }