private void CreateActivationPlayable(GameObject root, PlayableGraph graph, List <Playable> outplayables) { ScriptPlayable <ActivationControlPlayable> playable = ActivationControlPlayable.Create(graph, root, this.postPlayback); if (playable.IsValid <ScriptPlayable <ActivationControlPlayable> >()) { outplayables.Add(playable); } }
void CreateActivationPlayable(GameObject root, PlayableGraph graph, List <Playable> outplayables) { var activation = ActivationControlPlayable.Create(graph, root, postPlayback); if (activation.IsValid()) { outplayables.Add(activation); } }
public static ScriptPlayable <ActivationControlPlayable> Create(PlayableGraph graph, GameObject gameObject, ActivationControlPlayable.PostPlaybackState postPlaybackState) { ScriptPlayable <ActivationControlPlayable> result; if (gameObject == null) { result = ScriptPlayable <ActivationControlPlayable> .get_Null(); } else { ScriptPlayable <ActivationControlPlayable> scriptPlayable = ScriptPlayable <ActivationControlPlayable> .Create(graph, 0); ActivationControlPlayable behaviour = scriptPlayable.GetBehaviour(); behaviour.gameObject = gameObject; behaviour.postPlayback = postPlaybackState; result = scriptPlayable; } return(result); }