Example #1
0
 public Color GetColor(WorldColorSet set, WorldID world)
 {
     if (world == WorldID.Default)
     {
         return(set.defaultColor);
     }
     else
     {
         return(set.colors[(int)world]);
     }
 }
        void Update()
        {
            if (!Application.isPlaying && backgroundColorSet != null)
            {
                if (testWorld != lastTestWorld || backgroundColorSet != lastColorSet)
                {
                    lastTestWorld = testWorld;
                    lastColorSet  = backgroundColorSet;

                    var color = WorldManager.I.GetColor(backgroundColorSet, testWorld);

                    UpdateCamera(color);
                }
            }
        }
Example #3
0
 /// <summary>
 /// Get color for current world
 /// </summary>
 public Color GetColor(WorldColorSet set)
 {
     return(GetColor(set, CurrentWorld));
 }