internal GameObject GetGameObjectFromDO(GameObjectDO gameObjectDO) { GameObject gameObject = new GameObject(gameObjectDO.ID); gameObject.Name = gameObjectDO.Name; gameObject.IsSaved = gameObjectDO.IsSaved; foreach (ComponentDO componentDO in gameObjectDO.ComponentDOs) { gameObject.AddComponent(_componentFactory.GetComponentFromDO(componentDO)); } return gameObject; }
public static void SetPlayer(GameObject player) { _player = player; }