// Start is called before the first frame update void Start() { Screen.fullScreenMode = fsm; Screen.fullScreen = true; //Screen.orientation = ScreenOrientation.AutoRotation; InteractionUpdate(); _mh = FindObjectOfType <TCPMessageHandler>(); _views = FindObjectOfType <Views>(); }
// Start is called before the first frame update void Start() { _app = FindObjectOfType <App>(); _mh = FindObjectOfType <TCPMessageHandler>(); _mh.AddCallback("Restart", RestartCallback); _mh.AddCallback("UnloadView", UnloadCurrentView); SetReferences(); _fadeSequence = DOTween.Sequence(); _fadeImage.color = Color.black; LoadView(0); ResetFade(); //Restart(); }
public void SendMessage(byte[] data) { TCPMessageHandler.Write(this.Connection, data); }