/// <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 <HealthStatBoostResearchDefinition>(fileName); mMessageOnComplete = new Health.IncrementMaxHealthMessage(); }
/// <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() { Health.IncrementMaxHealthMessage temp = (Health.IncrementMaxHealthMessage)mMessageOnComplete; temp.mIncrementAmount_In = mDef.mLevels[mNextLevel].mIntValue; }