Пример #1
0
    /*
    static public void CreateGameWorld(int wSize)
    {
        worldInterface.Init(wSize);
    }*/
    public static WorldInterface CreateWorldInterface(int wSize)
    {
        if (_worldInterface == null)
        {
            GameObject g = GameObject.Find("_worldInterface");
            if (g == null)
            {
                g = new GameObject("_worldInterface");
            }
            _worldInterface = g.AddComponent<WorldInterface>();
            _worldInterface.Init(wSize);
        }

        return _worldInterface;
    }