Добавлен 3Д звук на некоторые можели.
Отображается прицел во время предвижения.
This commit is contained in:
parent
88a0e09a9c
commit
73b9ad95e8
@ -57,7 +57,7 @@ namespace Controller
|
|||||||
player.onPlayerSpawned += cameraControl.InitCameraControl;
|
player.onPlayerSpawned += cameraControl.InitCameraControl;
|
||||||
units.Add(player);
|
units.Add(player);
|
||||||
|
|
||||||
player.OnDeath += uiController.AdsMob.ShowCanvas;
|
// player.OnDeath += uiController.AdsMob.ShowCanvas;
|
||||||
player.OnDeath += paintedController.PaintOnDeath;
|
player.OnDeath += paintedController.PaintOnDeath;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -26,6 +26,7 @@ public class MusicController
|
|||||||
{
|
{
|
||||||
_sources[source].clip = clip;
|
_sources[source].clip = clip;
|
||||||
_sources[source].volume = _data.Settings.sfxVolume;
|
_sources[source].volume = _data.Settings.sfxVolume;
|
||||||
|
_sources[source].spatialBlend = 1f;
|
||||||
_sources[source].Play();
|
_sources[source].Play();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,6 +36,7 @@ public class MusicController
|
|||||||
|
|
||||||
value.clip = clips[Random.Range(0, clips.Count - 1)];
|
value.clip = clips[Random.Range(0, clips.Count - 1)];
|
||||||
value.volume = _data.Settings.sfxVolume;
|
value.volume = _data.Settings.sfxVolume;
|
||||||
|
value.spatialBlend = 1f;
|
||||||
value.Play();
|
value.Play();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +83,7 @@ namespace Chars
|
|||||||
|
|
||||||
private void AimCanvas(Vector2 attackDir)
|
private void AimCanvas(Vector2 attackDir)
|
||||||
{
|
{
|
||||||
if (!_unit.IsBusy)
|
if (!_unit.IsBusy || _attackJoystick.enabled)
|
||||||
{
|
{
|
||||||
_unit.UnitView.AimCanvas.SetActive(true);
|
_unit.UnitView.AimCanvas.SetActive(true);
|
||||||
_unit.Aim(attackDir);
|
_unit.Aim(attackDir);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user