Exemplo n.º 1
0
        void FireBullet(float val)
        {
            Bullet bullet = BulletFactory.Self.CreateNew();

            bullet.Position = this.Position;
            int velocity = 180;

            if (!RotationY.Equals(0))
            {
                velocity *= -1;
            }
            bullet.VelocityY = velocity;
        }