Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Scripts / NPC / Orc / EnemyNPCContoller.cs
@Rackday Rackday on 29 Oct 761 bytes Major Update
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using TMPro;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. using MyCollections.AI.FinitStateMachine;
  7. public abstract class EnemyNPCContoller : NPCController
  8. {
  9. protected new virtual void Awake()
  10. {
  11. base.Awake();
  12. }
  13. protected new virtual void OnEnable()
  14. {
  15. base.OnEnable();
  16. health = maxHealth;
  17. healthBarImage.fillAmount = MaxHealth;
  18. }
  19. // Start is called before the first frame update
  20. protected override void Start()
  21. {
  22. base.Start();
  23. }
  24. // Update is called once per frame
  25. protected override void Update()
  26. {
  27. base.Update();
  28. }
  29. protected override void OnDisable()
  30. {
  31. base.OnDisable();
  32. }
  33. }