Permalink
Newer
100644
37 lines (27 sloc)
691 Bytes
1
using UnityEngine;
2
using System.Collections;
3
4
public class HelloWorld : MonoBehaviour {
5
6
public bool isDead = false;
7
public int startingHealth = 100;
8
public int currentHealth;
9
public float dmg = 3.14f;
10
public string Name = "Terrence the Terrible";
11
public GameObject Camera;
12
public int strength = 0;
13
public int RandomNum = 0;
14
public string theText;
15
//public Text constText;
16
17
private Texture txtRef;
18
//public GameObject ConstText:
19
//public void
20
23
RandomNum = Random.Range (1, 8);
24
25
theText = RandomNum.ToString ();
26
27
Debug.Log (theText);
28
29
30
//Texture.text