Exemplo n.º 1
0
        public void CounterSet(int id, int value)
        {
            Counter counter = Counter.Find(id);

            _engine.Invoke(() => counter.Value = value);
        }
Exemplo n.º 2
0
        public void CounterSet(int id, int value)
        {
            Counter counter = Counter.Find(id);

            _engine.Invoke(
                () =>
            {
                Program.GameEngine.EventProxy.MuteEvents = true;
                counter.Value = value;
                Program.GameEngine.EventProxy.MuteEvents = false;
            });
        }