Advertisement
jretchy

Untitled

May 17th, 2022
457
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  private GameObject skillsMenu;
  2.  
  3.     private Transform player;
  4.  
  5.     private void Start()
  6.     {
  7.         skillsMenu = GameObject.Find("SkillsUI");
  8.  
  9.         player = this.gameObject.transform;
  10.     }
  11.  
  12.     private void Update()
  13.     {
  14.         skillsMenu.transform.position = new Vector3(player.position.x, player.position.y, player.position.z);
  15.     }
Advertisement
RAW Paste Data Copied
Advertisement