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