public void RpcPlaySoundForMainPlayer(PLAYER_SOUNDS s, bool _3d) { if(isLocalPlayer) PlaySound(s, _3d); }
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); }
public void RpcPlaySound(PLAYER_SOUNDS s, bool _3d) { PlaySound(s, _3d); }