Добавлен 3Д звук на некоторые можели.
Отображается прицел во время предвижения.
This commit is contained in:
parent
88a0e09a9c
commit
73b9ad95e8
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user