/// <summary> /// Call this to initialize a Behaviour with data supplied in a file. /// </summary> /// <param name="fileName">The file to load from.</param> public override void LoadContent(String fileName) { base.LoadContent(fileName); mDef = GameObjectManager.pInstance.pContentManager.Load <GunStatBoostResearchDefinition>(fileName); mMessageOnComplete = new TwinStick.IncrementGunLevelMessage(); }
/// <summary> /// Gets called right before the OnResearchCompleteMessage is sent. It is the responsibility of /// the derived class to use this chance to populate the message with up to date data. /// </summary> protected override void FillOnResearchCompleteMessage() { TwinStick.IncrementGunLevelMessage temp = (TwinStick.IncrementGunLevelMessage)mMessageOnComplete; temp.mIncrementAmount_In = mDef.mLevels[mNextLevel].mIntValue; }