1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- using System;
- namespace YLBattle
- {
- public partial class BattleManager : IBattleGlobalOper
- {
- #region 测试
- /// <summary>
- /// 修改数值
- /// </summary>
- /// <param name="who"></param>
- /// <param name="hp"></param>
- public void TestModifyBattleResult(bool _bol)
- {
- EBattleTeam trgTeam = _bol ? EBattleTeam.REDTEAM : EBattleTeam.BLUETEAM;
- List<LogicFighter> fighters = this.Env().mLogicFighterOper.FindTeamAliveFighter(trgTeam);
- foreach (LogicFighter child in fighters)
- {
- child.SetProperty(EBattleProperty.HP, -1 * child.GetProperty(EBattleProperty.HPMAX));
- }
- }
- /// <summary>
- /// 修改数值
- /// </summary>
- /// <param name="who"></param>
- /// <param name="hp"></param>
- public void TestModifyPower(string who)
- {
- LogicFighter fighter = this.Env().mLogicFighterOper.FindFighter(who);
- if (fighter == null)
- {
- return;
- }
- fighter.ModifyProperty(EBattleProperty.NPOWER, fighter.GetProperty(EBattleProperty.NMAXPOWER));
- }
- /// <summary>
- ///
- /// </summary>
- /// <param name="who"></param>
- /// <param name="skilltid"></param>
- public void TestCastSkill(string who, string skilltid)
- {
- //this.mBulletModel.OnCastSkill(who, skilltid);
- }
- #endregion
- }
- }
|