Example #1
0
 // 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;
 }
Example #2
0
 void HitHandler()
 {
     state = PlayerHitStand.HIT;
 }
Example #3
0
 void StandHandler()
 {
     state = PlayerHitStand.STAND;
 }