Пример #1
0
 void Start()
 {
     chipSprite = GetComponent <Image>();
     buttonAnimationController = FindObjectOfType <ButtonAnimationController>();
     chipButton.onClick.AddListener(ChangeBetValue);
     chipButton.onClick.AddListener(ChangeAnimation);
 }
Пример #2
0
    void Start()
    {
        buttonController = FindObjectOfType <ButtonAnimationController>();
        totalBetTextDisplayerReference      = FindObjectOfType <TotalBetTextDisplayer>();
        balanceAmountTextDisplayerReference = FindObjectOfType <BalanceAmountTextDisplayer>();
        betAnimationController = FindObjectOfType <PlaceBetAnimation>();

        button.onClick.AddListener(PlaceBet);
    }
Пример #3
0
 void Start()
 {
     buttonController  = FindObjectOfType <ButtonAnimationController>();
     selectedChipImage = buttonController.SelectedChipImage;
 }