船相关脚本呢
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user