Asteroids.Planet.SetRandomLocation C# (CSharp) Метод

SetRandomLocation() публичный Метод

public SetRandomLocation ( ) : void
Результат 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));
        }