Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        Bridge.Init();
        _server = new Server();
        DateTime dt = DateTime.Now;

        terrian = new SkyDream.Terrain();
        terrian.Init();
        Application.targetFrameRate = 60;
    }
Beispiel #2
0
 private void OnApplicationQuit()
 {
     Debug.LogFormat("OnApplicationQuit");
     if (null != terrian)
     {
         terrian.Destroy();
         terrian = null;
     }
     if (null != _server)
     {
         _server.Destroy();
         _server = null;
     }
     Bridge.Destroy();
     //mg.Destroy();
 }