Beispiel #1
0
 public override void UpdateFrame(float dt)
 {
     if (!isShow)
     {
         if (ShowTime.isTime(dt))
         {
             Image.Moveby(new Vector2(60, 0), 1f);
             Image.RunAction(new TintBy(new Vector4(0f, 0f, 0f, 1f), 0.5f));
             isShow = true;
         }
     }
     else if (!isEnd)
     {
         //base.UpdateFrame(dt);
         this.bounds = Image.GetBounds();
         TouchManager.Instance.AddTouchList(this);
     }
     else
     {
         if (ShowTime.isTime(dt))
         {
             Image.Moveby(new Vector2(-60, 0), 1f);
             Image.RunAction(new TintBy(new Vector4(0f, 0f, 0f, -1f), 0.5f));
             Scheduler.Instance.Unschedule(this, UpdateFrame);
         }
     }
 }
Beispiel #2
0
 public override void UpdateFrame(float dt)
 {
     this.bounds = image.GetBounds();
     TouchManager.Instance.AddTouchList(this);
 }