Пример #1
0
    public static Color GetRandomObstacleColor()
    {
        if (!isInitialized)
        {
            Init();
        }

        Color[] randColorBlock  = colorsDB[Random.Range(0, colorsDB.Count)];
        Color   backgroundColor = randColorBlock[3];
        Color   obstacleColor   = randColorBlock[2];
        Color   playerColor     = randColorBlock[1];
        Color   textColor       = randColorBlock[0];

        TextColorSwitcher.ChangeColor(textColor);
        PlayerController.ChangeColor(playerColor);
        CameraController.SetNewBackgroundColor(backgroundColor);
        return(obstacleColor);
    }
Пример #2
0
 //------------------------
 public static void SetNewTextColor(Color color)
 {
     TextColorSwitcher.ChangeColor(color);
 }