示例#1
0
    //888888888888888888888888888888888888888888888888
    //------------------- USED FOR DEBUG
    public void LocalDebug()
    {
        KnetMan kn = GameObject.Find("KnetMan").GetComponent <KnetMan>();

        kn.networkAddress = "127.0.0.1";
        kn.GetComponent <KcpTransport>().Port       = 7777;
        kn.GetComponent <TelepathyTransport>().port = 7777;
        kn.StartClient();
    }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     H.klog($"Assist Man Starting -- Init assistman instance and register _knet _ins");
     _ins  = this;
     _knet = this.gameObject.GetComponent <KnetMan>();
 }
示例#3
0
文件: KnetMan.cs 项目: JK-IT/UnityGit
 /// <summary>
 /// Runs on both Server and Client
 /// Networking is NOT initialized when this fires
 /// </summary>
 public override void Start()
 {
     H.klog($"Knet Manager Starting");
     base.Start();
     _kins = this;
 }