private void SetRandomColor() { GererationColorSystem changColor = new GererationColorSystem(IocContainer.Instance.GameLevel.CurrentLevel.QuantityColors); BoxColor = changColor.RandomColor; _boxBackgroundColor.material.color = BoxColor; GC.SuppressFinalize(changColor); }
private Color SetColor(int numberContainer) { var color = new GererationColorSystem(_quantityColors).ListColors[numberContainer]; return(color); }