コード例 #1
0
 public void EnterChat(int friendId)
 {
     if (curInstance != null)
     {
         curInstance.OnExit();
     }
     curInstance = pairId2Instance [GetPairID(curUserId, friendId)];
     curInstance.OnEnter();
 }
コード例 #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();
 }