public ISitcomResult Dom_Print(SitcomContext runtime, SitcomHeap target, string content, object[] args)
 {
     if (args[0] != null)
     {
         Debug.Log(args[0]);
     }
     if (!string.IsNullOrEmpty(content))
     {
         Debug.Log(content);
     }
     return(new SitcomDelay(args == null || args.Length < 1 ? 1 : SitcomUtil.ParseAsNumber(args[1])));
 }
 public ISitcomResult Dom_Delay(SitcomContext runtime, SitcomHeap target, string content, object[] args)
 {
     return(new SitcomDelay((float)SitcomUtil.ParseAsNumber(args[0])));
 }
Exemplo n.º 3
0
 public virtual float AsNumber(object target)
 {
     return(SitcomUtil.ParseAsNumber(target));
 }