DrawTarget.cs 545 B

1234567891011121314151617181920212223242526272829
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. using UnityEngine;
  4. public class DrawTarget : DrawShape
  5. {
  6. private RectTransform rectTransform_;
  7. private void Awake()
  8. {
  9. rectTransform_ = GetComponent<RectTransform>();
  10. }
  11. public override void StartDraw(Vector2 position)
  12. {
  13. }
  14. public override void StopDraw(Vector2 position)
  15. {
  16. }
  17. public override void UpdateShape(Vector2 newPosition)
  18. {
  19. rectTransform_.position = newPosition;
  20. }
  21. public override void Clear()
  22. {
  23. }
  24. }