PositionTarget.cs 561 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using UnityEngine;
  3. public class PositionTarget : ITarget
  4. {
  5. public int id
  6. {
  7. get{return 0;}
  8. }
  9. private Vector3 _position;
  10. public PositionTarget (Vector3 position)
  11. {
  12. _position = position;
  13. }
  14. public Vector3 position
  15. {
  16. get{return _position;}
  17. }
  18. public Vector3 heartPos
  19. {
  20. get{
  21. Vector3 pos = position;
  22. pos.y = 1.5f;
  23. return pos;
  24. }
  25. }
  26. public void MakeDamage(Bullet bullet)
  27. {
  28. }
  29. public void MakeHeal(Bullet bullet)
  30. {
  31. }
  32. public bool IsDead()
  33. {
  34. return false;
  35. }
  36. public bool CanShoot()
  37. {
  38. return false;
  39. }
  40. }