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;
        }
    }
Beispiel #3
0
 public void Add(string key, ManagedGameObject gameObject) => (ContentChildren[key] = gameObject).SetParent(content);
Beispiel #4
0
 public void RegisterObject(ManagedGameObject managedGameObject)
 {
     ManagedObjects.Add(managedGameObject);
 }