예제 #1
0
        public void AddSymbolDefine(string symbolName, SymbolType type, int buffer)
        {
            if (_symbolDefineList == null)
            {
                _symbolDefineList = new List <SymbolDefine>();
            }

            var define = new SymbolDefine();

            define.symbolName = symbolName;
            define.type       = type;

            var path = string.Empty;

            if (type == SymbolType.Blank)
            {
                path = "games/common/prefabs/EM";
            }
            else
            {
                path = "games/" + ConvertUtil.ToDigit(RelativeSlotConfig.ID) + "/prefabs/symbols/" + symbolName;
            }

            define.prefab = Resources.Load <Symbol>(path);

            define.buffer = buffer;

            _symbolDefineList.Add(define);
        }
예제 #2
0
 public static bool IsScatter(SymbolDefine symbolDefine)
 {
     return(IsScatter(symbolDefine.type));
 }