예제 #1
0
        public void FirstWorldRender()
        {
            if (_MenuTheme != null)
            {
                SoundHandler.StopSound(_MenuTheme);
                _MenuTheme = null;
            }

            OnWorldEnter?.Invoke();
        }
예제 #2
0
        private void OnPointerEnter(InputType type, int index, PointerEventData eventData)
        {
            switch (type)
            {
            case InputType.Inventory:
            {
                OnInventoryEnter.Invoke(index);
            }
            break;

            case InputType.Target:
            {
                OnWorldEnter.Invoke(eventData.position);
            } break;
            }
        }