コード例 #1
0
ファイル: Test.cs プロジェクト: VitaliyXV/AllegroTest
        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);

        }
コード例 #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);
        }