示例#1
0
 internal override void DoStart()
 {
     this.Grid = this.GetComponent <GridSystem>();
     UpdateManager.OnMouseUpdate += DoUpdate;
     this.Cursor = GUIScript.main.GetComponent <AnimatedCursor>();
     //throw new System.NotImplementedException();
 }
示例#2
0
 internal override void DoStart()
 {
     this.Grid = this.GetComponent<GridSystem>();
     UpdateManager.OnMouseUpdate += DoUpdate;
     this.Cursor = GUIScript.main.GetComponent<AnimatedCursor>();
     //throw new System.NotImplementedException();
 }
示例#3
0
        private static void RenderModel(InteractionUI interactionUi, Model model, StatueInteraction interaction,
                                        Camera camera, AnimatedCursor animatedCursor)
        {
            interactionUi.UpdateCursor(model.HitPosition, model.HitNormal, camera);
            var showCustomCursor = model.CurrentCursorState == Model.CursorState.DwellTimer;

            interactionUi.SetCursorVisible(showCustomCursor);
            animatedCursor.gameObject.SetActive(!showCustomCursor);
            RenderHighlightParticles(model, interaction, interactionUi);
            ToggleInteractiveSegments(model, interaction);
        }
示例#4
0
        private void Test0()
        {
            var animatedCursorFactroy = new AnimatedCursorFactroy();

            using (var content = new SharpZipLibContent(Path.Combine(GameCursor.CursorsDirectory, "Wait.zip")))
            {
                animatedCursor = animatedCursorFactroy.Read(content);
            }

            WindowCursor.SetCursor(animatedCursor);
        }
        protected override void Awake()
        {
            base.Awake();

            gazeCursor = FindObjectOfType <AnimatedCursor>();

            BasicGazeInfo = new GazeCursorInfo {
                currentPosition = gazeCursor.transform.position
            };

            recognizer = new GestureRecognizer();
            recognizer.SetRecognizableGestures(GestureSettings.Tap);
            recognizer.Tapped += TapEventHandler;
            recognizer.StartCapturingGestures();
        }
示例#6
0
        // called by the AppController
        public void Initialize(ITourEventsListener listener, Camera cam, SoundFX soundFx, NotificationUI notificationUi,
                               TourLog tourLog, AnimatedCursor animatedCursor)
        {
            _camera         = cam;
            _animatedCursor = animatedCursor;
            _soundFX        = soundFx;
            _listener       = listener;
            _interaction.Initialize(this, _camera);
            _notificationUI = notificationUi;
            _interactionUI.Initialize(PlayHoveredSegment);
            _tourLog = tourLog;
            foreach (var c in _content)
            {
                c.Init(this);
            }

            SetState(Model.TourState.Inactive);
        }