Пример #1
0
        void SetActiveBar(ReadingBar bar)
        {
            if (activeBar != null)
            {
                activeBar.Active = false;
                activeBar.Complete();
            }

            activeBar = bar;
            if (activeBar != null)
            {
                activeBar.Active = true;
            }
        }
Пример #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;
            }
        }
Пример #3
0
 void OnPointerUp()
 {
     dragging = null;
 }