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; } } } }
private void AssignCurrentSymbol() { symbolSprite = symbolSprites[RandomizeSymbol()]; currentSymbolPlatform.SetSymbol(symbolSprite); }