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); } }