Skip to content
Permalink
a2f0c8ace2
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
58 lines (38 sloc) 836 Bytes
using UnityEngine;
using System.Collections;
public class Stats : MonoBehaviour {
public string username = "HelloWarrior";
public int level;
public int HP;
public int STR;
public int DEF;
public int INT;
public int AGI;
public int LUC;
public double MinATK;
public double MaxATK;
// Use this for initialization
void Start () {
username = "HelloWarrior";
print (username);
STR = Random.Range (1, 30);
print (STR);
DEF = Random.Range (1, 30);
print (DEF);
INT = Random.Range (1, 30);
print (INT);
AGI = Random.Range (1, 30);
print (AGI);
LUC = Random.Range (1, 30);
print (LUC);
MinATK = STR * 0.3;
print (MinATK);
MaxATK = STR * 0.5;
print (MaxATK);
HP = Random.Range (STR * 10, STR * 20);
print (HP);
}
// Update is called once per frame
void Update () {
}
}