Exemplo n.º 1
0
    public GameObject PlayGetGoods(int id, Vector3 pos)
    {
        Sound_sound beanById = LocalModelManager.Instance.Sound_sound.GetBeanById(id);

        object[] args = new object[] { beanById.Path, id };
        return(this.PlayAtPoint(Utils.GetString(args), pos, beanById.Volumn));
    }
Exemplo n.º 2
0
    public GameObject PlayHitted(int id, Vector3 pos, float volumn = -1f)
    {
        Sound_sound beanById = LocalModelManager.Instance.Sound_sound.GetBeanById(id);

        if (volumn < 0f)
        {
            volumn = beanById.Volumn;
        }
        return(this.PlayAtPoint(beanById.Path, pos, volumn));
    }
Exemplo n.º 3
0
    public void PlayUI(int id)
    {
        Sound_sound beanById = LocalModelManager.Instance.Sound_sound.GetBeanById(id);

        this.PlayAtPoint(beanById.Path, Vector3.zero, beanById.Volumn);
    }
Exemplo n.º 4
0
    public GameObject PlayMonsterSkill(int id, Vector3 pos)
    {
        Sound_sound beanById = LocalModelManager.Instance.Sound_sound.GetBeanById(id);

        return(this.PlayAtPoint(beanById.Path, pos, beanById.Volumn));
    }