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.
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.
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,59 @@ | ||
using UnityEngine; | ||
using System.Collections; | ||
using UnityEngine.UI; | ||
public class DNDFight : MonoBehaviour { | ||
|
||
public Text pName; | ||
public Text pHitPoints; | ||
public Text pDMG; | ||
public Text pAcc; | ||
public Text eName; | ||
public Text eHitPoints; | ||
public Text eDMG; | ||
public Text eAcc; | ||
|
||
public string pNameStr; | ||
public int pHitPointsInt; | ||
public int pDMGLow; | ||
public int pDMGHigh; | ||
public float pAccf; | ||
|
||
public string eNameStr; | ||
public int eHitPointsInt; | ||
public int eDMGLow; | ||
public int eDMGHigh; | ||
public float eAccf; | ||
|
||
// Use this for initializations | ||
void Start () { | ||
Debug.Log ("HI"); | ||
pName = pName.GetComponent<Text> (); | ||
pHitPoints = pHitPoints.GetComponent<Text> (); | ||
pDMG = pDMG.GetComponent<Text> (); | ||
pAcc = pAcc.GetComponent<Text> (); | ||
eName = eName.GetComponent<Text> (); | ||
eHitPoints = eHitPoints.GetComponent<Text> (); | ||
eDMG = eDMG.GetComponent<Text> (); | ||
eAcc = eAcc.GetComponent<Text> (); | ||
|
||
} | ||
|
||
|
||
|
||
void set () { | ||
pName.text = pNameStr; | ||
pHitPoints.text = "HP: " + pHitPointsInt.ToString (); | ||
pDMG.text = pDMGLow.ToString () + " - " + pDMGHigh.ToString (); | ||
pAcc.text = "Accuracy: " + pAccf.ToString (); | ||
|
||
eName.text = eNameStr; | ||
eHitPoints.text = "HP: " + eHitPointsInt.ToString (); | ||
eDMG.text = eDMGLow.ToString () + " - " + eDMGHigh.ToString (); | ||
eAcc.text = "Accuracy: " + eAccf.ToString (); | ||
} | ||
|
||
// Update is called once per frame | ||
void Update () { | ||
set (); | ||
} | ||
} |
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,23 @@ | ||
using UnityEngine; | ||
using System.Collections; | ||
using UnityEngine.UI; | ||
public class DNDGen : MonoBehaviour { | ||
|
||
// Use this for initialization | ||
public GameObject MyCamera; | ||
public float playerHealth; | ||
public string myName; | ||
|
||
public Text text; | ||
|
||
void Start () { | ||
Debug.Log ("My name is " + myName); | ||
text = GetComponent<Text> (); | ||
text.text = "My name is " + myName; | ||
} | ||
|
||
// Update is called once per frame | ||
void Update () { | ||
|
||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.