override public void InitModel(ref JSONObject source) { base.InitModel(ref source); if (!mIsPlayer) { mBaseConfig = ScriptableObject.CreateInstance <KnightBaseConfig>(); mMeridianConfig = ScriptableObject.CreateInstance <KnightMeridianConfig>(); mBattleConfig = ScriptableObject.CreateInstance <KnightBattleConfig>(); mBaseConfig.InitBaseConfig(ref source); mMeridianConfig.InitMeridianConfig(ref source); mBattleConfig.InitBattleConfig(ref source); mNameID = -1; mName = mBaseConfig.firstName.Append(ref mSbd, mBaseConfig.secendName); } }
public override void Revert() { base.Revert(); mBaseConfig = null; }