Skip to content
Permalink
040812a49b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
45 lines (34 sloc) 933 Bytes
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class characterGen : MonoBehaviour {
//Variables
//float DecimalBox = .1f;
string myName = "Andrew";
//bool isDead = false'
string pNameWord = "YoYoYo";
public float playerHealth = 8f;
public Text text;
public Text pName;
// Use this for initialization
void Start () {
playerHealth = Random.Range (1.0f, 10.0f);
Debug.Log ("My Player Health: " + playerHealth);
playerHealth = playerHealth * 100.0f;
Debug.Log ("My Player Health with multiplier: " + playerHealth);
text = text.GetComponent<Text>();
text.text = myName;
pName.text = pNameWord;
}
// Update is called once per frame
void Update () {
/*if (myName != "Betty") {
Debug.Log ("You're name isn't Andrew!");
} else {
Debug.Log ("You're name is andrew! Way to go");
}*/
}
public void myButtonwasclicked() {
Debug.Log ("Button Clicked");
}
}