public void SetName(string inFirstName, string inLastName) { string oldName = name; mFirstName = inFirstName; if (inLastName.Length > 0) { mLastName = GameUtility.ChangeFirstCharToUpperCase(inLastName); } mShortName = mFirstName.Length <= 0 ? "." : firstName[0] + ". " + lastName; mThreeLetterName = ""; for (int index = 0; index < lastName.Length; ++index) { if (mThreeLetterName.Length < 3 && lastName[index].ToString() != " ") { mThreeLetterName += lastName[index]; } } name = inFirstName + " " + inLastName; Game.instance.mechanicManager.GetEntityList().ForEach(mechs => mechs.DriverRenamed(oldName, name)); }