Beispiel #1
0
 public static void InitGlobalVar(PowerEntities db, TS_OPERATOR oper)
 {
     Oper = oper;
     DataStateStringList = Enum.GetNames(typeof(DataState)).ToList();
     DeptList            = DeptController.GetList(db);
     RoleList            = RoleController.GetList(db);
     MenuList            = MenuController.GetList(db);
     PortalList          = PortalControler.GetList(db);
     OperList            = OperController.GetList(db);
     OperRoleList        = OperRoleController.GetList(db);
 }
Beispiel #2
0
    void Start()
    {
        TimeLeft = StageLength;

        if (onStageCreated != null)
            onStageCreated(this);

        if (onBossBattleEnds != null)
            onBossBattleEnds();

        Debug.LogWarning("BOSS BATTLE DISABLED IN STAGE CONTROLER STARTUP!!! DO NOT FORGET YOU FOOL!");
        BossBattleLength = 0.1f;

        _bossDefeated = true;

        if (portalControler == null)
            portalControler = FindObjectOfType<PortalControler>();

        if (PlayerDeathAnimationControler == null)
            PlayerDeathAnimationControler = FindObjectOfType<PlayerDeath>();
    }