コード例 #1
0
    public void ClientReady()
    {
        Debug.Log("Client Ready");
        DNC = GameObject.FindWithTag("Volume").GetComponent <DayNightController>();
        DNC.Init();

        /*
         * foreach (GameServer.Spawnable G in GameServer.GS.Spawnables)
         * {
         *  RegisterNewObject(G.Prefab);
         * }*/
    }
コード例 #2
0
    public void ServerReady(NetworkConnection conn)//server ready
    {
        Debug.Log("Server Ready");

        /*
         * if(GameServer.GS != null)
         * {
         *  foreach (GameServer.Spawnable G in GameServer.GS.Spawnables)
         *  {
         *      RegisterNewObject(G.Prefab);
         *  }
         * }*/

        DNC = GameObject.FindWithTag("Volume").GetComponent <DayNightController>();
        DNC.Init();

        NC = conn;
        GameObject.FindWithTag("Manager").GetComponent <ItemSpawner>().TurnOn();
        StartCoroutine(NewDay());

        //InvokeRepeating("TickForward", TickRate, TickRate);
    }