Simple helper class to debug things to any unity editor in the network.
Наследование: NetworkBehaviour
Пример #1
0
 private void Awake()
 {
     if (instance == null)
     {
         InvokeRepeating("ResetPacketStats", 1, 1);
         instance = this;
     }
     else if (instance != this)
     {
         Debug.Log("Instance already exists, destroying object!");
         Destroy(this);
     }
 }
Пример #2
0
    public void Awake()
    {
        base.OnStartLocalPlayer();

        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(gameObject);
        }


        Log      += LogEditor;
        LogError += LogErrorEditor;
    }
 public void Awake() {
     _instance = this;
     NetworkServer.RegisterHandler(NWDebugMsgType, ServerLog);
 }
 public void Awake()
 {
     _instance = this;
     NetworkServer.RegisterHandler(NWDebugMsgType, ServerLog);
 }