Arrowattribute.cs 755 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class Arrowattribute : MonoBehaviour
  5. {
  6. // Start is called before the first frame update
  7. //public Color ArrowColor;
  8. //public Vector3 ArrowPos;
  9. //public Vector3 Arrowrota;
  10. void Start()
  11. {
  12. this.transform.localRotation = Quaternion.Euler(0, 0, 0);
  13. }
  14. // Update is called once per frame
  15. void Update()
  16. {
  17. }
  18. /// <summary>
  19. /// 坐标旋转度赋值
  20. /// </summary>
  21. public void TransformMg()
  22. {
  23. //this.transform.position = ArrowPos;
  24. this.transform.rotation = Quaternion.Euler(0,0,0);
  25. }
  26. public void OnDisable()
  27. {
  28. // Destroy(this.gameObject);
  29. }
  30. }