コード例 #1
0
ファイル: App.cs プロジェクト: interaktivarum/kyrksalen
    // 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>();
    }
コード例 #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();
    }
コード例 #3
0
 public void SendMessage(byte[] data)
 {
     TCPMessageHandler.Write(this.Connection, data);
 }