Exemplo n.º 1
0
        public GravityBomb(GravityBombInfo info, ProjectileArgs args)
        {
            Args = args;
            altitude = args.srcAltitude;

            anim = new Animation(info.Image);
            if (anim.HasSequence("open"))
                anim.PlayThen("open", () => anim.PlayRepeating("idle"));
            else
                anim.PlayRepeating("idle");
        }
Exemplo n.º 2
0
        public GravityBomb(GravityBombInfo info, ProjectileArgs args)
        {
            this.info = info;
            this.args = args;
            pos = args.Source;
            velocity = new WVec(WRange.Zero, WRange.Zero, -info.Velocity);

            anim = new Animation(info.Image);
            if (anim.HasSequence("open"))
                anim.PlayThen("open", () => anim.PlayRepeating("idle"));
            else
                anim.PlayRepeating("idle");
        }
Exemplo n.º 3
0
        public GravityBomb(GravityBombInfo info, ProjectileArgs args)
        {
            Args     = args;
            altitude = args.srcAltitude;

            anim = new Animation(info.Image);
            if (anim.HasSequence("open"))
            {
                anim.PlayThen("open", () => anim.PlayRepeating("idle"));
            }
            else
            {
                anim.PlayRepeating("idle");
            }
        }
Exemplo n.º 4
0
        public GravityBomb(GravityBombInfo info, ProjectileArgs args)
        {
            this.info = info;
            this.args = args;
            pos       = args.Source;
            velocity  = new WVec(WRange.Zero, WRange.Zero, -info.Velocity);

            anim = new Animation(info.Image);
            if (anim.HasSequence("open"))
            {
                anim.PlayThen("open", () => anim.PlayRepeating("idle"));
            }
            else
            {
                anim.PlayRepeating("idle");
            }
        }