예제 #1
0
 public static SeasonConfigManager GetInstance()
 {
     if (mInstance == null)
     {
         mInstance = new SeasonConfigManager();
     }
     return(mInstance);
 }
예제 #2
0
    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");
    }
예제 #3
0
    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);
            }
        }
    }