Beispiel #1
0
    public void SuteHai(int index)
    {
        //Debug.Log (this._ownerPlayer.Name+" SuteHai("+index+")");
        MahjongPai pai = tehai.SuteHai(index);

        if (pai != null)
        {
            Hai    hai  = pai.GetInfo();
            string name = ResManager.getMagjongName(hai.Kind, hai.Num);
            string wind = ResManager.getString("kaze_" + _ownerPlayer.JiKaze.ToString().ToLower());
            Debug.Log("[" + wind + "]" + this._ownerPlayer.Name + " 出牌(" + name + ")");
            RecordPreTedasi._instance.PreTedasiPlayerIndex = this._ownerPlayer.Order;
            Speak(ECvType.Throw, hai);
            //Speak( ECvType.Reach );
            AddSuteHai(pai);
        }
        else
        {
            Debug.LogError("沒有這個牌 index" + index);
        }
    }