Добавлен 3Д звук на некоторые можели.

Отображается прицел во время предвижения.
This commit is contained in:
DyatelO 2022-01-19 21:31:29 +03:00
parent 88a0e09a9c
commit 73b9ad95e8
3 changed files with 4 additions and 2 deletions

View File

@ -57,7 +57,7 @@ namespace Controller
player.onPlayerSpawned += cameraControl.InitCameraControl;
units.Add(player);
player.OnDeath += uiController.AdsMob.ShowCanvas;
// player.OnDeath += uiController.AdsMob.ShowCanvas;
player.OnDeath += paintedController.PaintOnDeath;
}
else

View File

@ -26,6 +26,7 @@ public class MusicController
{
_sources[source].clip = clip;
_sources[source].volume = _data.Settings.sfxVolume;
_sources[source].spatialBlend = 1f;
_sources[source].Play();
}
@ -35,6 +36,7 @@ public class MusicController
value.clip = clips[Random.Range(0, clips.Count - 1)];
value.volume = _data.Settings.sfxVolume;
value.spatialBlend = 1f;
value.Play();
}

View File

@ -83,7 +83,7 @@ namespace Chars
private void AimCanvas(Vector2 attackDir)
{
if (!_unit.IsBusy)
if (!_unit.IsBusy || _attackJoystick.enabled)
{
_unit.UnitView.AimCanvas.SetActive(true);
_unit.Aim(attackDir);