// Start is called before the first frame update void Start() { _playerTotalMoney = transform.Find("BetUI/Text").gameObject.GetComponent <Text>(); _betButton.onClick.AddListener(BetHandler); _playerTotalMoney.gameObject.SetActive(true); _standButton.onClick.AddListener(StandHandler); _hitButton.onClick.AddListener(HitHandler); state = PlayerHitStand.DONOTHING; }
void HitHandler() { state = PlayerHitStand.HIT; }
void StandHandler() { state = PlayerHitStand.STAND; }