Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
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"); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{\rtf1\ansi\ansicpg1252\cocoartf1348\cocoasubrtf170 | ||
{\fonttbl\f0\fswiss\fcharset0 Helvetica;} | ||
{\colortbl;\red255\green255\blue255;} | ||
\margl1440\margr1440\vieww10800\viewh8400\viewkind0 | ||
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural | ||
|
||
\f0\fs24 \cf0 Build Notes: No notes- followed in class demonstration for Submission Guidelines} |