public static SeasonConfigManager GetInstance() { if (mInstance == null) { mInstance = new SeasonConfigManager(); } return(mInstance); }
void Initialize() { TimeManager.GetInstance().Initialize(); EventManager.GetInstance().Initialize(); PathConfigManager.GetInstance().Initialize(); SeasonConfigManager.GetInstance().Initialize(); GameTableManager.GetInstance().Initialize(); UIManager.GetInstance().Initialize(); UICommandSystem.GetInstance().Initialize(); UIManager.GetInstance().Show("IslandSelect"); }
public void TestFishSeason() { FishSeason season = SeasonConfigManager.GetInstance().GetSeason(Random.Range(0, 3)); if (season == null) { return; } foreach (OneWave wave in season.waves) { foreach (WaveFish fish in wave.fishes) { FishManager.GetInstance().CreateFish(fish.fkid, fish.p, wave.ea, wave.pathid, wave.speed, -fish.p.x / 20.0f); } } }