// Use this for initialization void Start() { string[] lines = namesList.text.Split('\n'); availableNames = new List <string>(lines); checkedGuests = new List <Ghuest>(); string[] colors = colorsList.text.Split('-'); List <string> colorStrings = new List <string>(colors); foreach (string s in colorStrings) { Color c = Color.white; ColorUtility.TryParseHtmlString(s, out c); availableColors.Add(c); } int tmpIndexCheck = 0; foreach (Ghuest ch in customGuests) { ch.events = NarrativeUI.ParseAvailableEventsForGhuest(ch.mainKnot); if (ch.name == String.Empty) { ch.name = getRandomName(true); } ch.indexCheckin = tmpIndexCheck; tmpIndexCheck += UnityEngine.Random.Range(2, 4); } availablePhonecallNames = new List <string>(); MapKnotName = new Dictionary <string, string>(); triggerTimer = 50.0f; }
public Ghuest(string n, string knot) { name = n; mainKnot = knot; events = NarrativeUI.ParseAvailableEventsForGhuest(knot); }