예제 #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);