internal override void DoStart() { this.Grid = this.GetComponent <GridSystem>(); UpdateManager.OnMouseUpdate += DoUpdate; this.Cursor = GUIScript.main.GetComponent <AnimatedCursor>(); //throw new System.NotImplementedException(); }
internal override void DoStart() { this.Grid = this.GetComponent<GridSystem>(); UpdateManager.OnMouseUpdate += DoUpdate; this.Cursor = GUIScript.main.GetComponent<AnimatedCursor>(); //throw new System.NotImplementedException(); }
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); }
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(); }
// 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); }