public void EnterChat(int friendId) { if (curInstance != null) { curInstance.OnExit(); } curInstance = pairId2Instance [GetPairID(curUserId, friendId)]; curInstance.OnEnter(); }
public void EnterChat(string name1, string name2 = "") { if (name2 == "") { name2 = curName; } if (curInstance != null) { curInstance.OnExit(); } curInstance = pairId2Instance [GetPairID(name1, name2)]; curInstance.OnEnter(); }