Example #1
0
    public void Invoke(InvokePkg.CallBack callback, float time)
    {
        InvokePkg ip = new InvokePkg();

        ip.frame_line_   = int.MaxValue;
        ip.dead_line_    = time;
        ip.dead_lineMax_ = time;
        ip.call_back_    = callback;
        invokeLst.Add(ip);
    }
Example #2
0
 public void InvokeRepeat(InvokePkg.CallBack callback, float time)
 {
     lock (invokeLst)
     {
         InvokePkg ip = new InvokePkg();
         ip.dead_line_    = time;
         ip.dead_lineMax_ = time;
         ip.call_back_    = callback;
         ip.isRepeat_     = true;
         invokeLst.Add(ip);
     }
 }