Exemple #1
0
    /// <summary>
    /// 开始竞猜
    /// </summary>
    public override void StartGame()
    {
        base.StartGame();
        GambleTrickySizeItem cup = gambleBuilder.GetCup();

        cup.SetCallBack(this);
        cup.SetStatus(GambleTrickySizeItem.CupStatusEnum.Choosing);
    }
Exemple #2
0
    /// <summary>
    /// 协程-开始改变杯子
    /// </summary>
    public IEnumerator CoroutineForStartChangeSize()
    {
        GambleTrickySizeItem cup = gambleBuilder.GetCup();

        cup.SetStatus(GambleTrickySizeItem.CupStatusEnum.Changing);
        yield return(new WaitForSeconds(2.6f));

        StartGame();
    }
Exemple #3
0
    /// <summary>
    /// 开始结算
    /// </summary>
    public override void StartSettlement()
    {
        base.StartSettlement();
        //展示结果
        GambleTrickySizeItem cup = gambleBuilder.GetCup();

        cup.SetStatus(GambleTrickySizeItem.CupStatusEnum.Result);
        StartCoroutine(CoroutineForSettlement());
    }
 public void InitCup()
 {
     gambleCup.SetStatus(GambleTrickySizeItem.CupStatusEnum.Idle);
 }