예제 #1
0
        public void GenerateAndUpdateComponents(GameObject sphere)
        {
            if (Gated && sp == null)
            {
                sp = new StoryPoint(0, 0, 1, 1, -1f, true, this.start, this.end, false, 1, 1, StoryPoint.DEFAULT_PERCEPTUAL_THRES, "", sphere);
            }

            if (Gated && !sp.HasComponent())
            {
                sp.SetUpComponent(sphere, this.GetSPEnabled(), this);
            }

            if (sp != null)
            {
                sp.UpdateComponent(this.GetSPEnabled(), this);
            }

            if (!Gated && _clipComponent == null)
            {
                this.SetUpClipComponent(sphere);
            }
            if (_clipComponent != null)
            {
                UpdateClipComponent();
            }
        }
예제 #2
0
        public void ReadSP(StoryPoint newSP, GameObject sphere)
        {
            sp = newSP;

            if (Gated && !sp.HasComponent())
            {
                sp.SetUpComponent(sphere, this.GetSPEnabled(), this);
            }
        }
예제 #3
0
        public Clip(string newName, float newStart, float newEnd, bool newInsideTimeline = false, float newTimelinePos = -1f, int newIndex = -1, bool newMuteAudio = false)
        {
            name           = newName;
            start          = newStart;
            end            = newEnd;
            insideTimeline = newInsideTimeline;
            timelinePos    = newTimelinePos;

            Gated = false;
            sp    = null;

            _index    = newIndex;
            muteAudio = newMuteAudio;
        }