private void OnClick_ownShop(GameObject obj) { this.handlingRItem = null; EBattleShopType nearestShopType = BattleEquipTools_op.GetNearestShopType(); MobaMessageManagerTools.BattleShop_openBattleShop(nearestShopType, EBattleShopOpenType.eFromButton); }
private bool GetBattleShopPoint() { Ray ray = Camera.main.ScreenPointToRay(this.touchPoint); int mask = LayerMask.GetMask(new string[] { "Shop" }); RaycastHit raycastHit; bool flag = Physics.Raycast(ray, out raycastHit, 200f, mask); if (flag) { BattleEquipmentShopModel component = raycastHit.transform.GetComponent <BattleEquipmentShopModel>(); if (!(component != null)) { return(false); } MobaMessageManagerTools.BattleShop_openBattleShop((EBattleShopType)component.ShopModelType, EBattleShopOpenType.eFromModel); } return(flag); }