Ejemplo n.º 1
0
        void Start()
        {
            ISerializer saver = new BaseSerializer();
            IShopController shop = new ShopCont_r();
            IPlayer player = new GamePlayer();
            IShip ship = new VikingShip();
            Assets.Scripts.ILogger log = GameLogger.GetInstance();
            saver.Serialize(shop);
            string playr = saver.Serialize(player);
           
            string shp = saver.Serialize(ship);
            saver.Deserialize(shp);

        }
Ejemplo n.º 2
0
        void Start()
        {
            ISerializer     saver  = new BaseSerializer();
            IShopController shop   = new ShopCont_r();
            IPlayer         player = new GamePlayer();
            IShip           ship   = new VikingShip();

            Assets.Scripts.ILogger log = GameLogger.GetInstance();
            saver.Serialize(shop);
            string playr = saver.Serialize(player);

            string shp = saver.Serialize(ship);

            saver.Deserialize(shp);
        }