Пример #1
0
    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);
    }
Пример #2
0
 public void SetContractWorth(ContractWorthAmount worth)
 {
     ContractWorth          = worth;
     ThisWorthSprite.sprite = WorthSprites[(int)worth];
 }