Пример #1
0
 public static void RuntimeInit()
 {
     if (!instance)
     {
         instance = Resources.Load <KiteSettings>(resourceName);
         DirX.OnSettings(instance);
         DirY.OnSettings(instance);
         Dir4.OnSettings(instance);
         TileHelpers.OnSettings(instance);
     }
 }
Пример #2
0
 public static void OnSettings(KiteSettings settings) =>
 (down, up) = (settings.downDirY, settings.upDirY);
Пример #3
0
 public static void OnSettings(KiteSettings settings)
 {
     tileSize = settings.tileSize;
 }
Пример #4
0
 public static void OnSettings(KiteSettings settings) =>
 (up, right, down, left) = (settings.upDir4, settings.rightDir4, settings.downDir4, settings.leftDir4);
Пример #5
0
 public static void OnSettings(KiteSettings settings) =>
 (left, right) = (settings.leftDirX, settings.rightDirX);