예제 #1
0
 private void AssignPlatformSymbols()
 {
     SymbolPlatform platform = platforms[Random.Range(0, platforms.Count - 1)];
     platform.SetSymbol(symbolSprite);
     platform.IsSafe = true;
     platform.HasSymbol = true;
     foreach (var item in platforms)
     {
         var newSymbol = symbolSprites[RandomizeSymbol()];
         if (!item.HasSymbol)
         {
             item.SetSymbol(newSymbol);
             if (newSymbol == symbolSprite)
             {
                 item.IsSafe = true;
             }
         }
     }
 }
예제 #2
0
 private void AssignCurrentSymbol()
 {
     symbolSprite = symbolSprites[RandomizeSymbol()];
     currentSymbolPlatform.SetSymbol(symbolSprite);
 }