Esempio n. 1
0
        public static void Frame(Action A)
        {
            if (!Initialized)
            {
                throw new InvalidOperationException("You forgot to call NuklearAPI.Init");
            }

            if (ForceUpdateQueued)
            {
                ForceUpdateQueued = false;

                Dev?.ForceUpdate();
            }

            bool HasInput;

            if (HasInput = HandleInput())
            {
                A();
            }

            Render(HasInput);

            if (FirstFrame)
            {
                FirstFrame = false;
                QueueForceUpdate();
            }
        }
Esempio n. 2
0
        public static void Frame(Action A)
        {
            if (ForceUpdateQueued)
            {
                ForceUpdateQueued = false;

                Dev?.ForceUpdate();
            }

            bool HasInput;

            if (HasInput = HandleInput())
            {
                A();
            }
            Render(HasInput);
        }