Exemplo n.º 1
0
 private Color GetSkyColorForPlanet(string planetId)
 {
     if (PlanetsDataHolder.TryGetPlanetData(planetId, out _currentPlanetData))
     {
         return(_currentPlanetData.SkyColor);
     }
     else
     {
         Debug.LogAssertion("There is no PlanetData for planet with id: " + planetId);
         return(Color.cyan);
     }
 }
 private Vector2 GetGravityForPlanet(string planetId)
 {
     if (PlanetsDataHolder.TryGetPlanetData(planetId, out _currentPlanetData))
     {
         return(_currentPlanetData.Gravity);
     }
     else
     {
         Debug.LogAssertion("There is no PlanetData for planet with id: " + planetId);
         return(Physics2D.gravity);
     }
 }