示例#1
0
    public void Speak(ECvType content)
    {
        string path = AudioConfig.GetCVPath(SystemVoiceType, content);

        //Debug.Log ("GameClientManager.Speak("+path+")");
        AudioManager.Get().PlaySFX(path);
    }
示例#2
0
    public static string GetCVPath(EVoiceType role, ECvType cv)
    {
        string roleStr = role.ToString().ToLower();
        string num     = ((int)cv).ToString("000");

        return(string.Format("Sounds/CV/sm_cv{0}{1}", roleStr, num));
    }
    void PlayRyuuKyokuVoice()
    {
        ECvType cv = ECvType.RyuuKyoku;

        if (ryuuKyokuReason == ERyuuKyokuReason.NoTsumoHai)
        {
            cv = ECvType.RyuuKyoku;
        }
        else if (ryuuKyokuReason == ERyuuKyokuReason.HaiTypeOver9)
        {
            cv = ECvType.RKK_HaiTypeOver9;
        }
        else if (ryuuKyokuReason == ERyuuKyokuReason.SuteFonHai4)
        {
            cv = ECvType.RKK_SuteFonHai4;
        }
        else if (ryuuKyokuReason == ERyuuKyokuReason.KanOver4)
        {
            cv = ECvType.RKK_KanOver4;
        }
        else if (ryuuKyokuReason == ERyuuKyokuReason.Reach4)
        {
            cv = ECvType.RKK_Reach4;
        }
        else if (ryuuKyokuReason == ERyuuKyokuReason.Ron3)
        {
            cv = ECvType.RKK_Ron3;
        }
        GameManager.Get().Speak(cv);
    }
示例#4
0
    public static string GetCVPath(EVoiceType role, ECvType cv)
    {
        string roleStr = role.ToString().ToLower();
        string num     = ((int)cv).ToString("000");
        string path    = string.Format("Sounds/CV/sm_cv{0}{1}", roleStr, num);

        //Debug.Log ("GetCVPath("+path+")");
        return(path);
    }
示例#5
0
    public static string GetHCVPath(EVoiceType role, ECvType cv, Hai h)
    {
        string roleStr = role.ToString().ToLower();
        string num     = ((int)cv).ToString("000");
        string path    = string.Format("Sounds/MJ/b/{0}", h.ID);

        //Debug.Log ("GetHCVPath("+path+")");
        return(path);
    }
示例#6
0
    public void Speak(ECvType content)
    {
        //Debug.Log (OwnerPlayer.Name+ "Speak "+content.ToString());
        string path = AudioConfig.GetCVPath(OwnerPlayer.VoiceType, content);

        //Debug.Log ("Speak("+path+")");
        AudioManager.Get().PlaySFX(path);
        //Debug.LogWarning( type.ToString() + "!!!" );
    }
示例#7
0
    public void Speak(ECvType content, Hai h)
    {
        string word = string.Empty;

        switch (content)
        {
        case ECvType.Throw:
            word = "出牌";
            break;

        case ECvType.Pon:        //
            word = "碰";
            break;

        case ECvType.Chii:        //吃
            word = "吃";
            break;

        case ECvType.Kan:        //槓
            word = "槓";
            break;

        case ECvType.Reach:        //聽
            word = "聽";
            break;

        case ECvType.Ron:        //胡
            word = "胡";
            break;

        case ECvType.Tsumo:        //自摸
            word = "自摸";
            break;
        }
        string hname = ResManager.getMagjongName(h.Kind, h.Num);
        //Debug.Log (OwnerPlayer.Name+ " Speak("+hname+")");
        string path = AudioConfig.GetHCVPath(OwnerPlayer.VoiceType, content, h);

        //string path = "Sounds/CV/sm_cvw_b001";
        //Debug.Log(path);
        AudioManager.Get().PlaySFX(path);
        EventManager.Instance.RpcSendEvent(UIEventType.Display_Throwpai_Panel, _index, h);
    }
示例#8
0
    void PlayLevelVoice(int level)
    {
        ECvType cv = ECvType.ManGan;

        switch (level)
        {
        default:
        case 0: return;

        case 1: cv = ECvType.ManGan; break;

        case 2: cv = ECvType.HaReMan; break;

        case 3: cv = ECvType.BaiMan; break;

        case 4: cv = ECvType.SanBaiMan; break;

        case 5: cv = ECvType.YakuMan; break;
        }

        string cvPath = AudioConfig.GetCVPath(currentAgari.agariPlayer.VoiceType, cv);

        AudioManager.Get().PlaySFX(cvPath);
    }
示例#9
0
 public void Speak(ECvType content)
 {
     AudioManager.Get().PlaySFX(AudioConfig.GetCVPath(OwnerPlayer.VoiceType, content));
     //Debug.LogWarning( type.ToString() + "!!!" );
 }
示例#10
0
 public void Speak(ECvType content)
 {
     AudioManager.Get().PlaySFX(AudioConfig.GetCVPath(SystemVoiceType, content));
 }