Ejemplo n.º 1
0
        /// <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);

            HealNearbyDefinition def = GameObjectManager.pInstance.pContentManager.Load<HealNearbyDefinition>(fileName);

            mObjectsInRange = new List<GameObject.GameObject>(16);
            mAppliedTo = def.mAppliedTo;
            mHealRange = def.mHealRange;

            mIncrementHealthMsg = new Health.IncrementHealthMessage();
            mIncrementHealthMsg.mIncrementAmount_In = def.mHealRate;
        }
Ejemplo n.º 2
0
        /// <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);

            HealNearbyDefinition def = GameObjectManager.pInstance.pContentManager.Load <HealNearbyDefinition>(fileName);

            mObjectsInRange = new List <GameObject.GameObject>(16);
            mAppliedTo      = def.mAppliedTo;
            mHealRange      = def.mHealRange;

            mIncrementHealthMsg = new Health.IncrementHealthMessage();
            mIncrementHealthMsg.mIncrementAmount_In = def.mHealRate;
        }