public void SelectRole(int sceneid) { CombatWnd cw = WndManager.FindDialog <CombatWnd>(); if (cw != null) { cw.Show9001(false); } Life target = CM.GetLifeM(sceneid, LifeMType.SOLDIER); ReleaseSkill(target.GetMapGrid(), target.GetMapGrid().WorldPos, target); CombatWnd wnd = WndManager.FindDialog <CombatWnd>(); if (wnd) { wnd.ShowSkill9001Effect(sceneid); } }
public void BtnRelease_OnClickEventHandler(UIButton sender) { if (CombatScheduler.State == CSState.End) { return; } /*if (!CheckMana()) * { * ChangeBiaoqing((int)CaptionExpress.nomana); * return; * }*/ if (m_currentstate == GodSkillState.Click) { m_currentstate = GodSkillState.Idle; Building.ShowAllHp(false); ChangeBiaoqing((int)CaptionExpress.idle, true); return; } m_currentstate = GodSkillState.Click; Building.ShowAllHp(true); ChangeBiaoqing((int)CaptionExpress.click, true); DoClick(); #if UNITY_IPHONE || UNITY_ANDROID || UNITY_WP8 || UNITY_BLACKBERRY if (Input.touchCount == 1) { LastPostion = new Vector3(Input.touches[0].position.x, Input.touches[0].position.y, 0); } #endif m_MouseDown = true; //gunsight.SetActive(true); CombatWnd cw = WndManager.FindDialog <CombatWnd>(); if (cw != null) { cw.CancelAllFire(); GodSkill godSkill = CmCarbon.GetGodSkill(true); if (godSkill.m_godskill.m_type == 9001) { cw.Show9001(true); } } }
//取消船长技能 public void CancelSelect() { if (m_currentstate == GodSkillState.Click) { UnDoClick(); m_currentstate = GodSkillState.Idle; Building.ShowAllHp(false); ChangeBiaoqing((int)CaptionExpress.idle, true); CombatWnd cw = WndManager.FindDialog <CombatWnd>(); if (cw != null) { GodSkill godSkill = CmCarbon.GetGodSkill(true); if (godSkill.m_godskill.m_type == 9001) { cw.Show9001(false); } } } CheckMana(); }