コード例 #1
0
        public override Playable CreatePlayable(PlayableGraph graph, GameObject go)
        {
            bool autoRebalance = false;
            bool createOutputs = graph.GetPlayableCount() == 0;
            ScriptPlayable <TimelinePlayable> playable = TimelinePlayable.Create(graph, this.GetOutputTracks(), go, autoRebalance, createOutputs);

            return((!playable.IsValid <ScriptPlayable <TimelinePlayable> >()) ? Playable.Null : playable);
        }
コード例 #2
0
        // Token: 0x060001A5 RID: 421 RVA: 0x00008918 File Offset: 0x00006B18
        protected 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);
            }
        }
コード例 #3
0
 void OnValidate()
 {
     if (!mixer.IsValid())
     {
         return;
     }
     mixer.GetBehaviour().ControlRotation    = ControlRotation;
     mixer.GetBehaviour().HorizontalRatation = HorizontalRatation;
     mixer.GetBehaviour().RotationSmoothing  = RotationSmoothing;
 }