Exemplo n.º 1
0
 //  public GameObject ragdollVaporise;
 // Use this for initialization
 void Start()
 {
     if (GetComponent <PhotonView>().isMine)
     {
         HealthText       = GameObject.FindWithTag("HUD").transform.Find("HealthText").GetComponent <Text>();
         currentHitPoints = hitPoints;
         snm = GameObject.FindObjectOfType <selfNetworkManager>();
         // snm.UIHealth.text = currentHitPoints.ToString();
     }
 }
Exemplo n.º 2
0
 public void setStuff()
 {
     currentHitPoints = hitPoints;
     snm = GameObject.FindObjectOfType <selfNetworkManager>();
     //  snm.UIHealth.text = currentHitPoints.ToString();
 }