Ejemplo n.º 1
0
    void GenEffects()
    {
        SymbolSheet symbolSheet = LoadMachineExcelAsset <SymbolSheet, SymbolData>(_config._machineName, "Symbol");
        BasicSheet  basicSheet  = LoadMachineExcelAsset <BasicSheet, BasicData>(_config._machineName, "Basic");

        string srcPath  = "";
        string destName = "";
        string destPath = "";

        //symbol effects
        ListUtility.ForEach(symbolSheet.DataArray, (SymbolData data) => {
            srcPath = Path.Combine(_presetAssetPath, "FX_SymbolEffect_Preset.prefab");

            if (!string.IsNullOrEmpty(data.WinEffect))
            {
                destName = data.WinEffect;
            }
            else if (!string.IsNullOrEmpty(data.WinEffect3D))
            {
                destName = data.WinEffect3D;
            }
            else
            {
                destName = "";
            }

            if (!string.IsNullOrEmpty(destName))
            {
                destPath  = _config._isDownloadMachine ? _effectsPathOfRemoteMachine : _effectsPathOfLocalMachine;
                destPath  = Path.Combine(destPath, destName);
                destPath += ".prefab";

                string dir = Path.GetDirectoryName(destPath);
                if (!Directory.Exists(dir))
                {
                    Directory.CreateDirectory(dir);
                }

                TryCopyAsset(srcPath, destPath);
                SetAssetBundleName(destPath);
            }
        });

        //super symbol
//		string superSymbolName = BasicValueFromKey(basicSheet.DataArray, "SuperSymbolLightEffect");
//		if(!string.IsNullOrEmpty(superSymbolName))
//		{
//			srcPath = Path.Combine(_presetAssetPath, "FX_Spin_SuperSymbol_ReelLight.prefab");
//
//			destPath = _config._isDownloadMachine ? _effectsPathOfRemoteMachine : _effectsPathOfLocalMachine;
//			destPath = Path.Combine(destPath, superSymbolName);
//
//			TryCopyAsset(srcPath, destPath);
//		}
    }
Ejemplo n.º 2
0
 static void DeselectAllButtonDown()
 {
     ListUtility.ForEach(_machineConfig._machineConfigs, (SingleMachineAssetConfig config) => {
         config._selected = false;
     });
 }