Skip to content
Permalink
59e4842735
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
51 lines (38 sloc) 1.03 KB
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class RNG_Str : MonoBehaviour {
public Canvas GameCanvas;
public int StrValue = 0;
public int StrValue1 = 0;
public int StrValue2 = 0;
public int StrValue3 = 0;
private string StrString;
// Use this for initialization
void Start() {
//Strength Rolls
StrValue1 = Random.Range(1, 6);
StrValue2 = Random.Range(1, 6);
StrValue3 = Random.Range(1, 6);
StrValue = StrValue1 + StrValue2 + StrValue3;
//String Value
StrString = StrValue.ToString();
Debug.Log(StrString);
}
public Text strText;
public void SetText(string text)
{
strText.text = StrString;
}
// Use this for initialization
void start ()
{
//setPropertyModification(RNG_Str as Text as strText);
// UnityEditor.PrefabUtility.ReplacePrefab(strText, strText);
//strText.guiText.
}
// Update is called once per frame
void Update()
{
}
}