Ejemplo n.º 1
0
 /// <summary>
 /// Returns 1 if there are non-zero blinds, otherwize 0.
 /// Equal blinds/antes are also counted as a bet (called by all), this is the most generic approach.
 /// This should be taken into account in setting bet limit for the round 0 in a game definition.
 /// </summary>
 /// <returns></returns>
 public int GetBlindsBetsCount()
 {
     if (BlindStructure.Length == 0)
     {
         return(0);
     }
     return(BlindStructure.Max() > 0 ? 1 : 0);
 }
Ejemplo n.º 2
0
 private void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         instance = this;
     }
 }