Exemplo n.º 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);
         }
     }
 }
Exemplo n.º 2
0
        public MenuBGObject(Node node) : base(node)
        {
            var vector = new Vector2(30, -300);

            Image         = new SpriteX(this, "PlanetMenu/Menu_BG.png", vector);
            Image.Color.A = 0;
            Image.RunAction(new TintBy(new Vector4(0f, 0f, 0f, 1f), 1f));
            Image.Moveby(new Vector2(0, 320), 1f);
        }
Exemplo n.º 3
0
 public override void UpdateFrame(float dt)
 {
     if (isEnd)
     {
         if (ShowTime.isTime(dt))
         {
             Image.RunAction(new TintBy(new Vector4(0f, 0f, 0f, -1f), 1f));
             Image.Moveby(new Vector2(0, -450), 1f);
             Scheduler.Instance.Unschedule(this, UpdateFrame);
         }
     }
 }