コード例 #1
0
        public override IScriptableItem Copy()
        {
            IScriptableItem config = base.Copy();
            BlueprintConfig target = config as BlueprintConfig;

            target.mine     = mine;
            target.silk     = silk;
            target.medicine = medicine;
            target.toxin    = toxin;
            return(config);
        }
コード例 #2
0
ファイル: BlueprintModel.cs プロジェクト: firefishes/knights
        public override void InitModel(ref JSONObject source)
        {
            base.InitModel(ref source);

            mBlueprintConfig = ScriptableObject.CreateInstance <BlueprintConfig>();

            source.GetField(ref mBlueprintConfig.medicine, "medicine");
            source.GetField(ref mBlueprintConfig.mine, "mine");
            source.GetField(ref mBlueprintConfig.silk, "silk");
            source.GetField(ref mBlueprintConfig.toxin, "toxin");
        }