public Collectible Create(Room room, CollectiblePersistence persistence)
        {
            Collectible col = Instantiate(
                _template.gameObject,
                persistence._position,
                Quaternion.identity,
                room.transform).GetComponent <Collectible>();

            col._persistence = persistence;
            return(col);
        }
Example #2
0
 protected override void PopulatePersistence()
 {
     _persistence = new CollectiblePersistence(_resource);
 }