Ejemplo n.º 1
0
    virtual protected void setup()
    {
        NwkSystemBase nwkCtx = NwkSystemBase.nwkSys;

        nwkClient = nwkCtx as NwkClient;
        nwkServer = nwkCtx as NwkServer;

        enabled = true;
    }
Ejemplo n.º 2
0
    protected override void Awake()
    {
        base.Awake();

        nwkServer = this;

        // Usually the server doesn't need to draw anything on the screen
        Application.runInBackground = true;

        Screen.SetResolution(1280, 720, false);

        //tick.resetTickCount();

        Debug.LogWarning("================== <b>SERVER</b> ==================");
    }