public void RemoveSelf() { TouchMove tm = TouchMoveManager.GetShipBuild(this); if (tm != null) { tm.DestroyShipBuild(); } }
public static void PutDownNewBuild() { TouchMove curTouchMove = TouchMoveManager.GetCurTouchMove(); if (null != curTouchMove) { if (curTouchMove.MyCore().IsNewCreate) { bool canput = curTouchMove.MoveBuildUp(); if (canput == false) { curTouchMove.DestroyShipBuild(); } } } }
void BtnDeleteSoldier_OnClickEventHandler(UIButton sender) { List <CanvasCore> childrenCore = PutCanvasM.GetChildByCore(m_Core); if (childrenCore.Count == 0) { return; } foreach (var childCore in childrenCore) { TouchMove tm = PutCanvasM.GetTouchMoveByCore(childCore); if (childCore.m_type == ShipBuildType.Soldier) { tm.DestroyShipBuild(); } } PutCanvasM.ShowRoomGridUI(false); }