Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        Debug.Log("Generating Map");

        mapGen.BuildMap();
        map = mapGen.map;
        StartCoroutine(GenerateArmies(2));

        loadNetworkObject();

        if (isClient)
        {
            Debug.Log("client gamelogic started");
            networkMaster.CmdImReady();
        }

        if (isServer)
        {
            Debug.Log("Server gamelogic started");
            //SetPlayerID ();
        }
    }