示例#1
0
 public void RpcPlaySoundForMainPlayer(PLAYER_SOUNDS s, bool _3d)
 {
     if(isLocalPlayer)
         PlaySound(s, _3d);
 }
示例#2
0
    public void PlaySound(PLAYER_SOUNDS s, bool _3d)
    {
        /*
        if (_3d)
            _source.spatialBlend = 1.0f;
        else
            _source.spatialBlend = 0.0f;
            */

        /*
        _source.Stop ();
        _source.clip = _clipList [(int)s];
        _source.Play ();
        */
        if(_clipList [(int)s] != null)
            _source.PlayOneShot (_clipList [(int)s]);

        //

           // UIConsole.Log(s);
    }
示例#3
0
 public void RpcPlaySound(PLAYER_SOUNDS s, bool _3d)
 {
     PlaySound(s, _3d);
 }