public void getAttTarget(clientEntity e) { if (state != 1) { return; } state = 3; recvTargetObj = e; }
public void noDis() { if (renderObj == null) { return; } renderObj.noDis(); renderObj = null; }
public void getRenderObj(clientEntity obj) { renderObj = obj; if (obj == null) { Debug.LogError("clientEntity为空"); return; } obj.sceneEntity = this; onGetRenderObj(); }
public void onClickEntity(clientEntity e) { if (state == 2) { recvTargetObj.reqUse(e.id); } else if (state == 3) { recvTargetObj.reqAtt(e.id); } else if (state == 1) { getAttTarget(e); } }
public void removeCard(clientEntity scc) { GameObject obj0 = null; foreach (GameObject obj in cardList) { if (obj.GetComponent <singleCardController>() == scc) { obj0 = obj; } } if (obj0 != null) { cardList.Remove(obj0); Destroy(obj0); updateCardPostion(); } else { Debug.LogError("卡牌删除失败"); } }
public void removeFollower(clientEntity ce) { GameObject obj0 = null; foreach (GameObject obj in followerList) { if (obj.GetComponent <singleFollowerController>() == ce) { obj0 = obj; } } if (obj0 != null) { followerList.Remove(obj0); Destroy(obj0); updateCardPostion(); } else { Debug.LogError("卡牌删除失败"); } }