public void onPatafuction() { if (mainLogic != null) { Obj_MyselfPlayer.GetMe().battleType = Games.Battle.BattleType.CHONG_LOU; mainLogic.OnBattleBefore(); } }
void OnStartBattle(GameObject go) { //验证当前领导力是否合法 int nowLeaderShip = Obj_MyselfPlayer.GetMe().GetLeaderShipValue(); if (nowLeaderShip > Obj_MyselfPlayer.GetMe().leadership) { Debug.LogWarning("current leadership forward max leadership"); BoxManager.showMessage("领导力超出上限,请调整当前队伍", ClientConfigure.title); return; } if (mainLogic != null) { Obj_MyselfPlayer.GetMe().battleType = Games.Battle.BattleType.CHONG_LOU; mainLogic.OnBattleBefore(); } }