船相关脚本呢

This commit is contained in:
2025-05-27 20:27:48 +08:00
parent 7ad9f351c7
commit 8dac46c92a
10 changed files with 60840 additions and 60783 deletions

View File

@@ -50,7 +50,19 @@ namespace NBF
{
if (string.IsNullOrEmpty(_interactiveData.Use1)) return;
Debug.Log(_interactiveData.Use1);
UI.Inst.OpenUI<FishingShopPanel>();
if (_interactiveObject.Type == UIDef.InteractiveType.Boat)
{
//上船
Debug.Log("上船===");
var boat = _interactiveObject.gameObject.GetComponent<Boat>();
Fishing.Inst.Player.SelfPlayer.EnterBoat(boat);
// Fishing.Inst.Player
}
else if (_interactiveObject.Type == UIDef.InteractiveType.FishingShop)
{
UI.Inst.OpenUI<FishingShopPanel>();
}
}
public void Use2()