merge fixes
This commit is contained in:
parent
2d87148a09
commit
0585266d8d
@ -169,7 +169,8 @@ namespace Units
|
||||
_animator = _instance.GetComponent<Animator>();
|
||||
_unitView = _instance.GetComponent<UnitView>();
|
||||
_barCanvas = _unitView.BarCanvas.GetComponent<BarCanvas>();
|
||||
_unitView.SetUp(_barCanvas.SpawnShotUI(_weapon.shots), _weapon, RegenMana, _data.manaRegen, CaptureHex, this);
|
||||
_unitView.SetUp(_barCanvas.SpawnShotUI(_weapon.shots), _weapon, RegenMana, _data.manaRegen, CaptureHex,
|
||||
this);
|
||||
SetAnimLength();
|
||||
MusicController.Instance.AddAudioSource(_instance);
|
||||
_mana = _data.maxMana;
|
||||
@ -201,6 +202,7 @@ namespace Units
|
||||
{
|
||||
_inventory.Remove(item);
|
||||
}
|
||||
|
||||
private void MoveEnd()
|
||||
{
|
||||
_isBusy = false;
|
||||
@ -247,13 +249,8 @@ namespace Units
|
||||
ball.AddComponent<WeaponView>().SetWeapon(_weapon);
|
||||
ball.transform.DOMove(
|
||||
new Vector3(_direction.normalized.x,
|
||||
<<<<<<< HEAD
|
||||
0, _direction.normalized.y) * _weapon.disnatce * _hexGrid.HexDistance +
|
||||
_instance.transform.position + new Vector3(0, 2, 0), // initiate
|
||||
=======
|
||||
0, _direction.normalized.y) * _weapon.disnatce * HexGrid.HexDistance +
|
||||
_instance.transform.position + new Vector3(0, 2, 0),
|
||||
>>>>>>> Alexei
|
||||
_weapon.speed)
|
||||
.SetEase(Ease.Linear)
|
||||
.OnComplete(() => Object.Destroy(ball));
|
||||
@ -331,7 +328,6 @@ namespace Units
|
||||
|
||||
private void Damage(int dmg)
|
||||
{
|
||||
|
||||
if (_defenceBonus == 0 && _hp - dmg <= 0f)
|
||||
{
|
||||
Death();
|
||||
|
Loading…
x
Reference in New Issue
Block a user