public void SetContractWorth(ContractWorthAmount worth) { ContractWorth = worth; ContractValue = ((int)worth + 1) * 30; ThisWorthSprite.sprite = WorthSprites[(int)worth]; int thisScaleValue = Random.Range(1, ((int)worth + 1) * 2); transform.localScale = new Vector3(thisScaleValue, thisScaleValue, thisScaleValue); }
public void SetContractWorth(ContractWorthAmount worth) { ContractWorth = worth; ThisWorthSprite.sprite = WorthSprites[(int)worth]; }