Esempio n. 1
0
    public void Massage()
    {
        for (int i = 0; i < cosmos.gameResults.startScreen.reels.Length; i++)
        {
            if (cosmos.gameResults.startScreen.reels != null)
            {
                Array.Reverse(cosmos.gameResults.startScreen.reels [i].reel);
            }
            if (cosmos.gameResults.endScreen.reels != null)
            {
                Array.Reverse(cosmos.gameResults.endScreen.reels [i].reel);
            }
        }

        for (int i = 0; i < cosmos.gameResults.transitions.Length; i++)
        {
            for (int j = 0; j < cosmos.gameResults.transitions [i].collapse.targets.Length; j++)
            {
                for (int k = 0; k < cosmos.gameResults.transitions [i].collapse.targets [j].target.positions.Length; k++)
                {
                    if (cosmos.gameResults.transitions [i].collapse.targets [j].target.positions [k].p [1] == 0)
                    {
                        cosmos.gameResults.transitions [i].collapse.targets [j].target.positions [k].p [1] = 2;
                    }
                    else
                    {
                        if (cosmos.gameResults.transitions [i].collapse.targets [j].target.positions [k].p [1] == 2)
                        {
                            cosmos.gameResults.transitions [i].collapse.targets [j].target.positions [k].p [1] = 0;
                        }
                    }
                }
            }
        }

        playScreen       = new ReelScreen();
        playScreen.reels = new Reels[cosmos.gameResults.startScreen.reels.Length];

        for (int i = 0; i < cosmos.gameResults.startScreen.reels.Length; i++)
        {
            int topScreenLength = 0;
            if (cosmos.gameResults.topScreen.reels != null)
            {
                topScreenLength = cosmos.gameResults.topScreen.reels [i].reel.Length;
            }
            playScreen.reels [i].reel = new string[cosmos.gameResults.startScreen.reels [i].reel.Length + topScreenLength];
            for (int j = 0; j < cosmos.gameResults.startScreen.reels [i].reel.Length; j++)
            {
                playScreen.reels [i].reel [j] = cosmos.gameResults.startScreen.reels [i].reel [j];
            }
            for (int j = 0; j < topScreenLength; j++)
            {
                playScreen.reels [i].reel [j + cosmos.gameResults.startScreen.reels [i].reel.Length] = cosmos.gameResults.topScreen.reels [i].reel [j];
            }
        }
    }
Esempio n. 2
0
 private void DestoryAllSymbol()
 {
     reelScreen = null;
     reelScreen = new ReelScreen();
     foreach (Transform child in gameObject.transform)
     {
         if (child.tag != "Floor")
         {
             Destroy(child.gameObject);
         }
     }
     Floor.SetActive(true);
 }