Exemplo n.º 1
0
        void SetActiveBar(ReadingBar bar)
        {
            if (activeBar != null)
            {
                activeBar.Active = false;
                activeBar.Complete();
            }

            activeBar = bar;
            if (activeBar != null)
            {
                activeBar.Active = true;
            }
        }
Exemplo n.º 2
0
        void OnPointerDown()
        {
            if (dragging)
            {
                return;
            }

            var inputManager = game.Context.GetInputManager();

            dragging = game.barSet.PickGlass(Camera.main, inputManager.LastPointerPosition);

            if (dragging != null)
            {
                draggingOffset = dragging.GetGlassScreenPosition() - inputManager.LastPointerPosition;
            }
        }
Exemplo n.º 3
0
 void OnPointerUp()
 {
     dragging = null;
 }