Beispiel #1
0
 public override void Run()
 {
     if (recyled)
     {
         return;
     }
     _seq = this.Sequence(env.envType)
            .Repeat((r) =>
     {
         _repeat = r.Sequence((s) =>
         {
             s.Repeat((_r) =>
             {
                 _r.Sequence((_s) =>
                 {
                     _s
                     .Until(IsFinish)
                     .OnBegin(OnLoopBegin)
                     .OnCompelete(OnLoopCompele);
                 });
             }, _array.Length - 1);
         });
     }, loop)
            .OnCompelete(OnTweenCompelete)
            .Run();
 }
Beispiel #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;
     }
 }
 public virtual void visit(IRepeatNode value)
 {
 }
Beispiel #4
0
 public void visit(IRepeatNode value)
 {
     string s = value.GetType().Name + ".";
     prepare_node(value.condition, s + "condition ");
     prepare_node(value.body, s + "body ");
 }
		public virtual void visit(IRepeatNode value)
		{
		}
Beispiel #6
0
 public void visit(IRepeatNode value)
 {
     value.body.visit(this);
     value.condition.visit(this);
     ISemanticNodeConverter.SourceTextBuilder.AddNodeInToStack(ISemanticNodeConverter.ConvertPABCNETNodeRepeat("repeat", value));
 }