Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

player wont work after guitext follow

$
0
0
hello

I have this script that my healthbar form a gui texture is following my player.
But for some reason my player wont follow my mouse pointer anymore.
Here is the script that the guitexture follow. this script is on the player.
Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class healthbaraboveplayer : MonoBehaviour {
  5.  
  6.  
  7.     public GameObject guiObject;
  8.     // Use this for initialization
  9.     void Start () {
  10.  
  11.     }
  12.  
  13.     // Update is called once per frame
  14.     void Update...
player wont work after guitext follow

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>