latest change

This commit is contained in:
2022-05-13 13:29:03 +07:00
parent 3ed89a8c10
commit 85518c4f3f
4 changed files with 11 additions and 10 deletions

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 37213a83bd954b64c910ca7c65cf881f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -23,6 +23,7 @@ namespace Animators.Leonid_Animator
[SerializeField] private float movementSpeed = 5;
[SerializeField] private float rotationSpeed = 10;
public float health = 100f;
private void Start()
{
myRigidbody = GetComponent<Rigidbody>();
@ -36,6 +37,12 @@ namespace Animators.Leonid_Animator
private void Update()
{
if (Input.GetButtonDown("Fire1") && health > 0)
{
health -= 5;
}
var deltaTime = Time.deltaTime;
_inputHandler.TickInput(deltaTime);
_moveDirection = _cameraObject.forward * _inputHandler.vertical

View File

@ -204,6 +204,8 @@ public class NPC : Agent, ICharacter
CharacterFactory.Instance.ReSpawn(this, ref pos, ref id);
}
}
//public event OnDeathEvent<
public void ResetCharacter()
{

View File

@ -1,2 +1,2 @@
m_EditorVersion: 2019.4.36f1
m_EditorVersionWithRevision: 2019.4.36f1 (660c164b2fc5)
m_EditorVersion: 2019.4.35f1
m_EditorVersionWithRevision: 2019.4.35f1 (0462406dff2e)