Silly enemy, attack bug fix
This commit is contained in:
1 parent
b02e201cd0
commit
1d107924bf
567 files changed
+197825
-635242
No files matched your search
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Threading;
|
||||
using Code.Infrastructure.Camera;
|
||||
using Code.Infrastructure.UI;
|
||||
@@ -41,8 +40,6 @@ namespace Code.OfficeGame.BattleMode.Health.UI
|
||||
Vector3 screenPos = _camera.WorldToScreenPoint(_target.position);
|
||||
|
||||
bool isVisible = screenPos.z > 0;
|
||||
if (gameObject.activeSelf != isVisible)
|
||||
gameObject.SetActive(isVisible);
|
||||
|
||||
if (isVisible)
|
||||
transform.position = screenPos;
|
||||
|
||||
Reference in new issue
Block a user