public static string GetUniqueFsmName(GameObject go) { PlayMakerFSM[] components = go.GetComponents <PlayMakerFSM>(); string text = Strings.get_FSM(); int num = 1; while (Labels.FsmNameExists(components, text)) { num++; text = "FSM " + num; } return(text); }