Exemplo n.º 1
0
        public static void SetSubviewPosition(SubviewType subviewType, SubviewPositionType subviewPositionType, float offsetX, float offsetY, float sizeX, float sizeY)
        {
            SIGVerseMenu sigverseMenu = GameObject.FindObjectOfType <SIGVerseMenu>();

            if (sigverseMenu == null)
            {
                SIGVerseLogger.Warn("SIGVerseMenu is not exists.");
                return;
            }

            ExecuteEvents.Execute <ISubviewHandler>
            (
                target: sigverseMenu.gameObject,
                eventData: null,
                functor: (reciever, eventData) => reciever.OnSetSubviewPosition(subviewType, subviewPositionType, offsetX, offsetY, sizeX, sizeY)
            );
        }
Exemplo n.º 2
0
        public static void SetSubviewCamera(SubviewType subviewType, Camera camera)
        {
            SIGVerseMenu sigverseMenu = GameObject.FindObjectOfType <SIGVerseMenu>();

            if (sigverseMenu == null)
            {
                SIGVerseLogger.Warn("SIGVerseMenu is not exists.");
                return;
            }

            ExecuteEvents.Execute <ISubviewHandler>
            (
                target: sigverseMenu.gameObject,
                eventData: null,
                functor: (reciever, eventData) => reciever.OnSetSubviewCamera(subviewType, camera)
            );
        }