# CreateScene

```
    /// <summary>
    /// 创建一个场景, 成功则返回场景对象, 创建失败则返回null
    /// </summary>
    /// <param name="sceneID"></param>
    /// <param name="scene"></param>
    /// <returns></returns>
    public Scene CreateScene(string sceneID, Scene scene)
    {
        if (string.IsNullOrEmpty(sceneID))
            return null;
        if (Scenes.TryAdd(sceneID, scene))
        {
            scene.Name = sceneID;
            scene.onSerializeOptHandle = OnSerializeOpt;
            return scene;
        }
        return null;
    }
```
