示例#1
0
 // 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;
 }
示例#2
0
        // 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);
        }