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(); } }
public void ReadSP(StoryPoint newSP, GameObject sphere) { sp = newSP; if (Gated && !sp.HasComponent()) { sp.SetUpComponent(sphere, this.GetSPEnabled(), this); } }
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; }