Пример #1
0
    // Token: 0x06000886 RID: 2182 RVA: 0x00024920 File Offset: 0x00022D20
    public List <PlayerManager.TileFillColor> GetFillColor(string TID)
    {
        string key = "FILLCOLOR_" + TID;
        List <PlayerManager.TileFillColor> list = new List <PlayerManager.TileFillColor>();
        string @string = PlayerPrefs.GetString(key);

        if (@string.CompareTo(string.Empty) == 0)
        {
            return(list);
        }
        string[] array = @string.Split(new char[]
        {
            ';'
        });
        int num = array.Length;

        for (int i = 0; i < num; i++)
        {
            string[] array2 = array[i].Split(new char[]
            {
                ','
            });
            int i2           = int.Parse(array2[0]);
            int j            = int.Parse(array2[1]);
            int color        = int.Parse(array2[2]);
            int isTouchRight = int.Parse(array2[3]);
            int isEarser     = int.Parse(array2[4]);
            PlayerManager.TileFillColor item = PlayerManager.TileFillColor.Create(i2, j, color, isTouchRight, isEarser);
            list.Add(item);
        }
        return(list);
    }
Пример #2
0
    // Token: 0x06000930 RID: 2352 RVA: 0x000275FC File Offset: 0x000259FC
    private IEnumerator ReplayCoroutine(string TID)
    {
        this._listFillColor = PlayerManager.Instance.GetFillColor(TID);
        int fillCount = this._listFillColor.Count;

        for (int i = 0; i < fillCount; i++)
        {
            if (i % 2 == 0)
            {
                yield return(new WaitForSeconds(0.02f));
            }
            PlayerManager.TileFillColor fillColor = this._listFillColor[i];
            string     key = fillColor.indexX + "_" + fillColor.indexY;
            TileReplay tileReplay;
            this._dicReplayTiles.TryGetValue(key, out tileReplay);
            if (tileReplay != null)
            {
                Color c       = Color.white;
                bool  isRight = false;
                if (fillColor.colorIndex > 0)
                {
                    DataTiles.ColorTile colorTile;
                    this._dataTiles.colorRank.TryGetValue(fillColor.colorIndex, out colorTile);
                    if (colorTile != null)
                    {
                        c = colorTile.trueColor;
                    }
                }
                if (fillColor.isTouchRight == 0)
                {
                    isRight = true;
                }
                tileReplay.SetColor(c, isRight);
                if (fillColor.isEarser == 0)
                {
                    tileReplay.SetGrey();
                }
            }
        }
        yield break;
    }
Пример #3
0
 // Token: 0x0600085A RID: 2138 RVA: 0x000238EC File Offset: 0x00021CEC
 public void AddColorFill(int i, int j, int c, int isTouchRight, int isEarser)
 {
     PlayerManager.TileFillColor item = PlayerManager.TileFillColor.Create(i, j, c, isTouchRight, isEarser);
     this._tileFillColorList.Add(item);
 }