Asteroids.Planet.SetRandomLocation C# (CSharp) Méthode

SetRandomLocation() public méthode

public SetRandomLocation ( ) : void
Résultat void
        public void SetRandomLocation()
        {
            int screenHeight = graphicsManager.Viewport.Height;
            int screenWidth = graphicsManager.Viewport.Width;
            location = new Vector2(rnd.Next(0, screenWidth), rnd.Next(0, screenHeight));
        }