Пример #1
0
 private void Start()
 {
     CommNet = new CommNet();
     CommNet.OnReceiveMessage += OnReceiveMessage;
     sigalManager              = new SigalManager();
     userInput.onButtonClick  += SendButtonMessage;
 }
Пример #2
0
 private void OnDestroy()
 {
     if (CommNet != null)
     {
         CommNet.OnDestroy();
         CommNet = null;
     }
 }