I have a problem with random generate stat for the character. I am still new in using Unity engine. I hope that someone can help me. There is no error in the code but i when i play the game the character stat are all zero and i notice that unity have an error start() cannot take parameter. Please someone help me.
private void Start(int remainingStat, int useStat)
{
//random stat for guildrecruit
remainingStat = totalStat - useStat;
int health = Random.Range(3, remainingStat);
int attack = Random.Range(3, remainingStat);
int defense = Random.Range(3, remainingStat);
int accuracy = Random.Range(3, remainingStat);
int evasion = Random.Range(3, remainingStat);
int speed = Random.Range(3, remainingStat);
int cunning = Random.Range(3, remainingStat);
totalStat = 30;
useStat = health + attack + defense + accuracy + evasion + speed + cunning;
}