PointSignLastHitNew.cs 495 B

1234567891011121314151617181920212223242526272829
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. /*
  5. 在静止靶时,
  6. 在左边小靶上保留上次射箭时的箭的位置(高亮点表示)
  7. 下次再射箭时候取消前次高亮点,
  8. 以便用户更好的针对上次射箭的状态进行调整
  9. */
  10. public class PointSignLastHitNew : MonoBehaviour
  11. {
  12. void Start()
  13. {
  14. }
  15. public void Hide()
  16. {
  17. gameObject.SetActive(false);
  18. }
  19. public void Show(Vector3 pos)
  20. {
  21. transform.position = pos;
  22. gameObject.SetActive(true);
  23. }
  24. }