コード例 #1
0
 private void DueMessage(Action <ReceieveMessage> action, ReceieveMessage message)
 {
     if (action == null)
     {
         UnDueMessages.Add(message);
         return;
     }
     action(message);
 }
コード例 #2
0
 private void Teacher_OnReveieveData(ReceieveMessage message)
 {
     DueMessage(OnTeacherReceiveMessage, message);
 }
コード例 #3
0
 private void Student_OnReveieveData(ReceieveMessage message)
 {
     DueMessage(OnStudentReceiveMessage, message);
 }