Exemple #1
0
    virtual protected void updateNetwork()
    {
        NwkUiViewLogs nvLogs = getModule <NwkModViews>()?.getTab <NwkUiViewLogs>();

        if (nvLogs != null && tick != null)
        {
            nvLogs.txtTick.text = tick.getTickCount().ToString();
        }
    }
Exemple #2
0
    public void log(string ct, bool silent = false)
    {
        if (NwkClient.isClient())
        {
            ct = NwkClient.nwkUid + " " + ct;
        }

        Debug.Log(ct);

        NwkUiViewLogs nvLogs = getModule <NwkModViews>()?.getTab <NwkUiViewLogs>();

        if (nvLogs != null)
        {
            if (!silent)
            {
                nvLogs.addLog(ct);
            }
            else
            {
                nvLogs.addRaw(ct);
            }
        }
    }