Ejemplo n.º 1
0
    //Server only
    public static void StartPoolManager()
    {
        GameObject pM = Instantiate(Resources.Load("PoolManager") as GameObject);

        if (clothFactory != null || !CustomNetworkManager.Instance._isServer)
        {
            return;
        }

        clothFactory = pM.GetComponent <ClothFactory>();

        //Preload to save on Instantiation during gameplay
        ClothFactory.PreLoadCloth(Instance.preLoadClothAmount);
    }