UIRootOnEnable.cs 504 B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class UIRootOnEnable : MonoBehaviour
  5. {
  6. public UIMove uiMove;
  7. public Transform head;
  8. private bool init = false;
  9. private void Update()
  10. {
  11. // transform.position = new Vector3(head.position.x,0,head.position.z) + new Vector3(0, 1.5f, 1.5f);
  12. //Vector3 pos = head.forward * 1.5f;
  13. //transform.position = new Vector3(pos.x,0,pos.z) + new Vector3(0, 1.5f, 0);
  14. }
  15. }