StationaryAreaStep.cs 412 B

123456789101112131415161718
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class StationaryAreaStep : AbstractSafetyAreaStep
  5. {
  6. private Vector2 circleCenter = new Vector2(0, 0);
  7. public void SetCircleCenter(Vector3 headPosition)
  8. {
  9. circleCenter = new Vector2(headPosition.x, headPosition.z);
  10. }
  11. public Vector2 GetCircleCenter()
  12. {
  13. return circleCenter;
  14. }
  15. }