예제 #1
0
        protected static void Trigger(MyTimerBlock obj)
        {
            if (!obj.IsWorking)
            {
                return;
            }

            obj.StopCountdown();
            if (Sync.IsServer)
            {
                obj.NeedsUpdate |= Common.MyEntityUpdateEnum.BEFORE_NEXT_FRAME;
            }
            else
            {
                obj.UpdateEmissivity();
            }
        }
예제 #2
0
        protected static void OnTrigger(MyTimerBlock obj)
        {
            if (!obj.IsWorking)
            {
                return;
            }

            obj.StopCountdown();
            if (Sync.IsServer)
            {
                obj.NeedsUpdate |= MyEntityUpdateEnum.BEFORE_NEXT_FRAME;
            }
            else
            {
                obj.TimerSyncObject.Trigger();
            }
        }
예제 #3
0
        protected static void Trigger(MyTimerBlock obj)
        {
            if (!obj.IsWorking)
            {
                return;
            }

            obj.StopCountdown();
            if (Sync.IsServer)
            {
                obj.NeedsUpdate |= MyEntityUpdateEnum.BEFORE_NEXT_FRAME;
            }
            else
            {
                obj.UpdateEmissivity();
            }
        }
예제 #4
0
        protected static void OnTrigger(MyTimerBlock obj)
        {
            if (!obj.IsWorking)
            {
                return;
            }

            obj.StopCountdown();
            if (Sync.IsServer)
            {
                obj.NeedsUpdate |= Common.MyEntityUpdateEnum.BEFORE_NEXT_FRAME;
            }
            else
            {
                obj.TimerSyncObject.Trigger();
            }
        }