目录调整,旧钓鱼逻辑全部注释

This commit is contained in:
2025-08-22 00:09:05 +08:00
parent 2f8251fe63
commit 6767dc7019
154 changed files with 937 additions and 483 deletions

View File

@@ -0,0 +1,78 @@
using NBC;
namespace NBF
{
public class Fishing
{
Fishing()
{
App.OnUpdate += Update;
}
private static Fishing _inst;
public static Fishing Inst => _inst ??= new Fishing();
public int Map { get; private set; }
public FishingPlay Player { get; private set; }
public FishingDatasource Datasource { get; private set; }
public void Go(int map)
{
Map = map;
EnterMap();
}
#region Load
private void EnterMap()
{
EnterDone();
}
#endregion
void Update()
{
Datasource?.Update();
Player?.Update();
}
/// <summary>
/// 进入地图成功
/// </summary>
private void EnterDone()
{
DataInit();
PlayerInit();
}
private void DataInit()
{
Datasource = new FishingDatasource();
Datasource.Init();
}
private void PlayerInit()
{
if (Player != null)
{
Player.UnLoadLevel(NewBattlePlayInit);
}
else
{
NewBattlePlayInit();
}
}
private void NewBattlePlayInit()
{
Player = new FishingPlay(Datasource);
Player.Init();
}
}
}