Example #1
0
 public PData()
 {
     active             = false;
     sprite             = G.I.NewAnimatedSprite(null, 0);
     sprite.depthOffset = 0;
     sprite.Hide();
     sprite.loop = false;
 }
Example #2
0
 public void Tick(float dt)
 {
     position += (velocity * dt);
     sprite.transform.position = new Vector3(
         Mathf.Round(position.x * S.SIZE),
         Mathf.Round(position.y * S.SIZE)
         );
     if (timer)
     {
         sprite.Hide();
         active = false;
     }
 }