Beispiel #1
0
 public void PlayBuildingRepair(GameObject building)
 {
     if (FMOD_StudioSystem.instance)
     {
         Vector3 position = PlayerSfx.FindClosestPoint(building, base.transform.position);
         FMOD_StudioSystem.instance.PlayOneShot(this.HammerEvent, position, null);
     }
 }
Beispiel #2
0
    public void PlayBuildingComplete(GameObject building, bool networkSync = false)
    {
        Vector3 position = PlayerSfx.FindClosestPoint(building, base.transform.position);

        if (networkSync)
        {
            this.PlayEvent(this.TwinkleEvent, position);
        }
        else
        {
            FMOD_StudioSystem.instance.PlayOneShot(this.TwinkleEvent, position, null);
        }
    }