public static void RuntimeInit() { if (!instance) { instance = Resources.Load <KiteSettings>(resourceName); DirX.OnSettings(instance); DirY.OnSettings(instance); Dir4.OnSettings(instance); TileHelpers.OnSettings(instance); } }
public static void OnSettings(KiteSettings settings) => (down, up) = (settings.downDirY, settings.upDirY);
public static void OnSettings(KiteSettings settings) { tileSize = settings.tileSize; }
public static void OnSettings(KiteSettings settings) => (up, right, down, left) = (settings.upDir4, settings.rightDir4, settings.downDir4, settings.leftDir4);
public static void OnSettings(KiteSettings settings) => (left, right) = (settings.leftDirX, settings.rightDirX);