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
34 lines (27 sloc) 680 Bytes
using UnityEngine;
using System.Collections;
public class RNG_Int : MonoBehaviour
{
//Base Values
public int IntValue = 0;
public int IntValue1 = 0;
public int IntValue2 = 0;
public int IntValue3 = 0;
private string IntString;
// Use this for initialization
void Start()
{
//Rolls
IntValue1 = Random.Range(1, 6);
IntValue2 = Random.Range(1, 6);
IntValue3 = Random.Range(1, 6);
IntValue = IntValue1 + IntValue2 + IntValue3;
//String Value
IntString = IntValue.ToString();
Debug.Log(IntString);
}
// Update is called once per frame
void Update()
{
}
}