private void Start() { CommNet = new CommNet(); CommNet.OnReceiveMessage += OnReceiveMessage; sigalManager = new SigalManager(); userInput.onButtonClick += SendButtonMessage; }
private void OnDestroy() { if (CommNet != null) { CommNet.OnDestroy(); CommNet = null; } }