/// <summary>
 /// Initialization Helper
 /// </summary>
 /// <param name="spriteRenderer">SpriteRenderer Component</param>
 /// <param name="oldVisualizationHelper">Old CellVisualizationHelper</param>
 public CellVisualizationHelper(SpriteRenderer spriteRenderer, CellVisualizationHelper oldVisualizationHelper)
 {
     SpriteRenderer        = spriteRenderer;
     _whiteSprite          = oldVisualizationHelper._whiteSprite;
     AliveColor            = oldVisualizationHelper.AliveColor;
     DeadColor             = oldVisualizationHelper.DeadColor;
     SpriteRenderer.sprite = _whiteSprite;
 }
Exemple #2
0
 /// <summary>
 /// Initialization component
 /// </summary>
 private void InitCell()
 {
     _visualizationHelper = new CellVisualizationHelper(GetComponent <SpriteRenderer>(), _visualizationHelper);
 }