BannerHero.cs 650 B

123456789101112131415161718192021222324252627282930
  1. using UnityEngine;
  2. namespace GameLogic.Combat.Hero
  3. {
  4. public class BannerHero : IHero
  5. {
  6. public Vector3 dotPos
  7. {
  8. get { return _gameObject.transform.position; }
  9. }
  10. public T GetThis<T>() where T : IHero
  11. {
  12. return (T)(object)this;
  13. }
  14. public bool IsEnemy { get; set; }
  15. public bool isDie { get; set; }
  16. public GameObject GameObject
  17. {
  18. get { return _gameObject; }
  19. }
  20. private GameObject _gameObject;
  21. public void Init(GameObject gameObject)
  22. {
  23. this._gameObject = gameObject;
  24. }
  25. }
  26. }