Esempio n. 1
0
 public PhysicsObject(GameObject gameObject, string type)
 {
     GameObject = gameObject;
     SaveOnlyStatefulGameObject = new SaveOnlyStatefulGameObject(new GameObjectWrapper(gameObject, type));
     Moves     = GetNewVectorList();
     Rotations = GetNewQuaternionList();
 }
Esempio n. 2
0
        public ReadWriteGameObject(GameObject gameObject)
        {
            var monoBehaviourWrapper = new GameObjectWrapper(gameObject, "");

            _readGameObject = new ReadOnlyStatefulGameObject(monoBehaviourWrapper);
            _saveGameObject = new SaveOnlyStatefulGameObject(monoBehaviourWrapper);
        }
Esempio n. 3
0
 public void SetUp()
 {
     _gameObject = Substitute.For <IGameObject>();
     _saveOnlyStatefulGameObject = new SaveOnlyStatefulGameObject(_gameObject);
 }