Пример #1
0
        protected override void OnDataReset()
        {
            if (_node != null && !_node.recyled)
            {
                _node.Recyle();
                _node = null;
            }
            onCompelete = null;
            _curdur     = _dur = 0f;

            _curve     = ValueCurve.linecurve;
            compeleted = false;
        }
Пример #2
0
 private void RecycleInner()
 {
     if (_tv != null && !_tv.recyled)
     {
         _tv.Recyle();
         _tv = null;
     }
     if (_seq != null && !_seq.recyled)
     {
         _seq.Recyle();
         _seq = null;
     }
     if (_repeat != null && !_repeat.recyled)
     {
         _repeat.Recyle();
         _repeat = null;
     }
 }
Пример #3
0
        private void message_send_Click(object sender, EventArgs e)
        {
            string str = message_message.Text;

            if (sq != null)
            {
                sq.Recyle();
            }
            sq = this.Sequence(APP.env)
                 .Repeat((r) => {
                r.Sequence((s) =>
                {
                    s.Event(() =>
                    {
                        APP.net.SendTcpMessageToAll(new SeverFormBroadCast()
                        {
                            message = str
                        });
                    })
                    .TimeSpan(TimeSpan.FromSeconds(Message_gap_slider.Value));
                });
            }, MesaggSlider.Value)
                 .Run();
        }