public void SetStandComputed() { int w100 = CharacterEngine.ComputeStandWurf(); inStandWurf.text = w100.ToString(); Stand stand = CharacterEngine.GetStandfromWurf(w100); switch (stand) { case Stand.Unfrei: inStandText.text = "unfrei"; break; case Stand.Volk: inStandText.text = "Volk"; break; case Stand.Mittelschicht: inStandText.text = "Mittelschicht"; break; case Stand.Adel: inStandText.text = "Adel"; break; default: break; } }
public void SetStandCharacter() { Toolbox globalVars = Toolbox.Instance; globalVars.InstantiateLernplanHelpers(); //Bereite Lernplanhelper vor! if (inStandText.text != "") { int w100 = Convert.ToInt32(inStandWurf.text); globalVars.mCharacter.Schicht = CharacterEngine.GetStandfromWurf(w100); Debug.Log(globalVars.mCharacter.ToString()); } }