public void Setup(MapConfig mapConfigData, int newMaximumValue, int newCurrentValue) { mapConfig = mapConfigData; maximumValue = newMaximumValue; currentValue = newCurrentValue; maximumNumberOfPips = mapConfig.GetMaximumNumberOfPips(); if (gameObject.name == mapConfig.GetSecurityPipManagerName()) { maximumNumberOfPips += 7; } distanceBetweenPips = mapConfig.GetDistanceBetweenPips(); pipValue = (float)maximumValue / maximumNumberOfPips; float setupTimeInSeconds = FindObjectOfType <MapData>().GetSetupTimeInSeconds(); StartCoroutine(ChangeNumberOfPips(setupTimeInSeconds)); }