public void Restore(ManagedGameObject item) { // item.gameObject.SetActive(_isActive); item.transform.localPosition = _position; item.transform.localRotation = _rotation; if (item.CanDestroy) { item._isDestroyed = _isDestroyed; } }
public void Save(ManagedGameObject item) { // _isActive = item.gameObject.activeSelf; _position = item.transform.localPosition; _rotation = item.transform.localRotation; if (item.CanDestroy) { _isDestroyed = item._isDestroyed; } }
public void Add(string key, ManagedGameObject gameObject) => (ContentChildren[key] = gameObject).SetParent(content);
public void RegisterObject(ManagedGameObject managedGameObject) { ManagedObjects.Add(managedGameObject); }