Exemple #1
0
        public static bool Startup()
        {
            Player_ = new PlayerInfo();
            Player_.LoadFromCache();

            Dps_ = new PlayerDps(0.5f);

            CoreNpc_ = NpcManager.AddCoreNpc("Core", Configure.CoreBasePosition, NpcManager.GenerateCoreNpcAttr());

            EventManager.Register <NpcDamageEvent>(OnNpcDamageEvent);
            EventManager.Register <NpcDieEvent>(OnNpcDieEvent);
            EventManager.Register <NpcAttrChangedEvent>(OnCoreAttrChanged);

            UIManager.OpenUI <MainUI>();
            //UIManager.OpenUI<DpsUI>();
            UIManager.OpenUI <HeroListUI>();
            //UIManager.OpenUI<QuickControlUI>();

            //CreateMainEmitter();
            //WaveManager.LoadWave((uint)Player.Wave);

            EventManager.Send <CoreInfoChangeEvent>();
            return(true);
        }