// Use this for initialization void Start() { ovalPlayer = transform.root; flyAround = ovalPlayer.gameObject.GetComponent <FlyAround>(); tourMode = GetComponent <TourMode>(); //Setup Photon Event Callback PhotonNetwork.OnEventCall += this.OnEvent; }
// called by the AppController public void StartTour(TourMode mode) { _model = new Model() { TourMode = mode, CompletedContent = new List <InteractiveSegment.SegmentType>(), }; //extra data necessary in mixed mode if (mode == TourMode.Mixed) { _model.CurrentMixedInitiativeState = Model.MixedInitiativeState.Guided; } SetState(Model.TourState.Prologue); _notificationUI.ShowDebugNotification($"Start tour {mode.ToString()}"); RenderModel(_interactionUI, _model, _interaction, _camera, _animatedCursor); }