Beispiel #1
0
    // 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>();
    }
Beispiel #2
0
    // 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();
    }
Beispiel #3
0
 public void SendMessage(byte[] data)
 {
     TCPMessageHandler.Write(this.Connection, data);
 }