This commit is contained in:
YangHua 2024-08-20 18:38:58 +08:00
parent e9f71f53c5
commit 3c2f3f7f3c
1 changed files with 4 additions and 2 deletions

View File

@ -11,6 +11,7 @@ public class TooRoomlMannger : MonoBehaviour
public Transform HandSlot; public Transform HandSlot;
private List<Material> _cancel; //帤援渴第窐ヶ private List<Material> _cancel; //帤援渴第窐ヶ
private List<Material> _wear; //援渴第窐ヶ private List<Material> _wear; //援渴第窐ヶ
public bool isChange = false;
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {
@ -24,10 +25,11 @@ public class TooRoomlMannger : MonoBehaviour
tmd.GetInfo(); tmd.GetInfo();
} }
} }
public void Wear(string equipName, bool ischange) public void Wear(string equipName)
{ {
isChange = !isChange;
Material ma = null; Material ma = null;
if (ischange) if (isChange)
{ {
ma = _wear.SingleOrDefault(s => s.name == equipName); ma = _wear.SingleOrDefault(s => s.name == equipName);
} }