示例#1
0
        public static Color GetColor(int index)
        {
            if (_instance == null)
            {
                _instance = new GUIColors();
            }

            return(_instance.colors[index]);
        }
 public Color this[int index]
 {
     get
     {
         if (_instance == null)
             _instance = new GUIColors(); 
         return _instance.colors[index];
     }
     set
     {
         if (_instance == null)
             _instance = new GUIColors(); 
         _instance.colors[index] = value;
     }
 }
示例#3
0
 public Color this[int index]
 {
     get
     {
         if (_instance == null)
         {
             _instance = new GUIColors();
         }
         return(_instance.colors[index]);
     }
     set
     {
         if (_instance == null)
         {
             _instance = new GUIColors();
         }
         _instance.colors[index] = value;
     }
 }
        public static Color GetColor(int index)
        {
            if (_instance == null)
                _instance = new GUIColors();

            return _instance.colors[index];
        }