Inheritance: MonoBehaviour
        public bool CreateLoadManager(BillingCompanyInfo billingCompanyInfo)
        {
            ReferenceGenerator refNumber = new ReferenceGenerator();
            string refNum = refNumber.GenerateReference();

            LoadManager loadManager = new LoadManager();
            loadManager.Start(billingCompanyInfo);

            return true;
        }
Example #2
0
 private void OnEvent(MonoBehaviour behaviour, Events ev)
 {
     if (LoadManager.GetCurrentScene() == OWScene.SolarSystem)
     {
         bool flag = behaviour.GetType() == typeof(Flashlight) && ev == Events.AfterStart;
         if (flag)
         {
             SetupCamera();
         }
     }
     base.ModHelper.Console.WriteLine(behaviour.name);
 }
Example #3
0
    private void Awake()
    {
        closeResultsButton.onClick.AddListener(OnResultsPageClose);

        saveManager        = gameObject.GetComponent <SaveManager>();
        loadManager        = gameObject.GetComponent <LoadManager>();
        infoManager        = gameObject.GetComponent <InfoManager>();
        sessionXPManager   = gameObject.GetComponent <SessionXPManager>();
        storeManager       = gameObject.GetComponent <StoreManager>();
        infoGetter         = gameObject.GetComponent <InfoGetter>();
        achievementManager = gameObject.GetComponent <AchievementManager>();
    }
Example #4
0
        static void Main()
        {
            CheckForUpdates();

            InformationManager.StartInstance();
            AuctionManager.StartInstance();
            LoadManager.StartInstance();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Connect());
        }
 // Start is called before the first frame update
 void Start()
 {
     if (CustomNetworkManager.IsServer == false)
     {
         return;
     }
     if (!runOnStart)
     {
         return;
     }
     LoadManager.RegisterActionDelayed(RunOreGenerator, 2);
 }
Example #6
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
     }
     DontDestroyOnLoad(gameObject);
 }
Example #7
0
 public void PlayGame()
 {
     if (mainMenuScene != "")
     {
         LoadManager.LoadScene(playLevelScene);
         return;
     }
     else
     {
         return;
     }
 }
Example #8
0
 string dataFile = "SaveData.dat";   // what the file will be called whether being created or appended.
 void Awake()
 {
     if (instance == null)
     {
         DontDestroyOnLoad(this.gameObject);//Don't Destroy is a separate scene that opens on load, this line moves ONE instance of LoadManager into Don't Destory
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(this.gameObject);
     }
 }
Example #9
0
 public void Credits()
 {
     if (mainMenuScene != "")
     {
         LoadManager.LoadScene(creditsScene);
         return;
     }
     else
     {
         return;
     }
 }
Example #10
0
        static void Main(string[] args)
        {
            string        cache;
            List <Agency> aList = new List <Agency>();

            do
            {
                Console.WriteLine("Заменить данные об агентстве? Да или нет");
                cache = Console.ReadLine();
                if (cache.Equals("да"))
                {
                    Agency agency = new Agency("agency");
                }
            } while (!(cache.Equals("да") || cache.Equals("нет")));

            LoadManager loader1 = new LoadManager("agency");

            loader1.BeginRead();
            while (loader1.IsLoading)
            {
                aList.Add(loader1.Read(new Agency.Loader()) as Agency);
            }
            loader1.EndRead();
            bool clearFile = WriteToFile.ClearFile();

            if (clearFile)
            {
                Console.WriteLine("Hear");
                Console.WriteLine(aList[0].Cout);
                for (int i = 0; i < aList[0].Cout; i++)
                {
                    MyObject myObject = new MyObject(aList[0], "myobject");
                }
            }
            LoadManager     loader = new LoadManager("myobject");
            List <MyObject> sList  = new List <MyObject>();

            loader.BeginRead();
            while (loader.IsLoading)
            {
                sList.Add(loader.Read(new MyObject.Loader()) as MyObject);
            }
            loader.EndRead();
            Console.Write("Агенство недвижимости ");
            Console.WriteLine(aList[0].Name);
            foreach (MyObject m in sList)
            {
                Console.WriteLine(m.Name);
            }
            Console.ReadKey();

            Console.ReadKey();
        }
Example #11
0
 public void GoToMainMenu()
 {
     if (mainMenuScene != "")
     {
         LoadManager.LoadScene(mainMenuScene);
         return;
     }
     else
     {
         return;
     }
 }
Example #12
0
    private void Awake()
    {
        if (Instance != null)
        {
            DestroyImmediate(Instance.gameObject);
        }

        Instance = this;
        PoolManager.Instance.onEndPoolLoad = EndLoadPool;

        DontDestroyOnLoad(gameObject);
    }
Example #13
0
    protected virtual void HandleLoadedProperty(JsonTextReader reader, string propertyName, object readValue)
    {
        switch (propertyName)
        {
        case "Name":
            objectName = (string)readValue;
            break;

        case "Id":
            ObjectId = (int)(System.Int64)readValue;
            break;

        case "Position":
            transform.localPosition = LoadManager.LoadVector(reader);
            break;

        case "Rotation":
            transform.localRotation = LoadManager.LoadQuaternion(reader);
            break;

        case "Scale":
            transform.localScale = LoadManager.LoadVector(reader);
            break;

        case "HitPoints":
            hitPoints = (int)(System.Int64)readValue;
            break;

        case "Attacking":
            attacking = (bool)readValue;
            break;

        case "MovingIntoPosition":
            movingIntoPosition = (bool)readValue;
            break;

        case "Aiming":
            aiming = (bool)readValue;
            break;

        case "CurrentWeaponChargeTime":
            currentWeaponChargeTime = (float)(double)readValue;
            break;

        case "TargetId":
            loadedTargetId = (int)(System.Int64)readValue;
            break;

        default:
            break;
        }
    }
Example #14
0
    protected override void HandleLoadedProperty(JsonTextReader reader, string propertyName, object readValue)
    {
        base.HandleLoadedProperty(reader, propertyName, readValue);
        switch (propertyName)
        {
        case "AimRotation":
            aimRotation = LoadManager.LoadQuaternion(reader);
            break;

        default:
            break;
        }
    }
    //--------------------------------------------

    void selectSlot(int slot)
    {
        if (File.Exists(Application.persistentDataPath + "/saveslot" + (slot + 1) + ".data"))
        {
            gameMaster.setGameMode(1);
            LoadManager.Load(slot + 1);
            mainMenu.SetActive(false);
        }
        else
        {
            Debug.Log("slot " + (slot + 1) + " is empty!");
        }
    }
Example #16
0
 // Use this for initialization
 void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
         DontDestroyOnLoad(this);
         GetLoadInfo();
     }
     else
     {
         DestroyImmediate(this);
     }
 }
    public void ContinueGame()
    {
        if (relatedSceneName != null && relatedSceneName != "" && LoadManager.SaveExists(relatedSceneName + PersistanceConstants.SAVE_FILENAME_POSTFIX))
        {
            string sceneName = relatedSceneName;

            if (sceneName != null && sceneName != "")
            {
                Time.timeScale = 1.0f;
                leveLoader.LoadSavedScene(sceneName);
            }
        }
    }
 public void JoinGame(bool inEye)
 {
     if (inEye)
     {
         LoadManager.LoadSceneAsync(OWScene.EyeOfTheUniverse, true, LoadManager.FadeType.ToBlack, 1f, false);
         Locator.GetMenuInputModule().DisableInputs();
     }
     else
     {
         LoadManager.LoadSceneAsync(OWScene.SolarSystem, true, LoadManager.FadeType.ToBlack, 1f, false);
         Locator.GetMenuInputModule().DisableInputs();
     }
 }
Example #19
0
        public void LoadComplete()
        {
            //Texture t = WWWLoad.Instance().getTexture("j-001");
            //this.GetComponent<RawImage>().texture = t;

            Texture t = LoadManager.getTexture("j-001");

            this.GetComponent <RawImage>().texture = t;
            Debug.Log("hhhhhhhhhhhh:::ok" + t.texelSize);
            Debug.Log("资源加载成功");
            XMLManager.LoadXML("file:///" + Application.dataPath + "/File/Weapon.xml");
            XMLManager.LoadXML("file:///" + Application.dataPath + "/File/Monster.xml");
        }
Example #20
0
    private void BtnClick(Button button)
    {
        switch (button.name)
        {
        case "btnSetting":
            break;

        case "btnHome":
            LoadManager.Load(SceneName.StartScene);
            GameRoot.Instance.evt.CallEvent(GameEventDefine.GAME_RESUME, null);
            break;
        }
    }
Example #21
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
     else if (instance != this)
     {
         Destroy(gameObject);
         return;
     }
     DontDestroyOnLoad(gameObject);
     blackScreen = GetComponentInChildren <CanvasGroup>();
 }
        private void Disconnect()
        {
            _intentionalDisconnect = true;

            QSBNetworkManager.singleton.StopHost();
            SetButtonActive(DisconnectButton.gameObject, false);

            Locator.GetSceneMenuManager().pauseMenu._pauseMenu.EnableMenu(false);
            Locator.GetSceneMenuManager().pauseMenu._isPaused = false;

            OWInput.RestorePreviousInputs();

            LoadManager.LoadScene(OWScene.TitleScreen, LoadManager.FadeType.ToBlack, 2f);
        }
Example #23
0
 private void Awake()
 {
     foreach (MainMenuButton menuButton in GetComponentsInChildren <MainMenuButton>())
     {
         mainMenuButtons.Add(menuButton);
     }
     loadManager = FindObjectOfType <LoadManager>();
     GetComponentInChildren <CanvasRenderer>().gameObject.SetActive(false);
     foreach (GameObject inGameButton in loadManager.levelButtons)
     {
         inGameMenuButtons.Add(inGameButton.GetComponent <MenuButton>());
     }
     GetPerLevelPPStatus();
 }
Example #24
0
    void Start()
    {
        if (gameState == null)
        {
            gameState = new SplashScreenState(this);
        }

        audioManagerRef  = AudioManager.GetInstance();
        canvasManagerRef = CanvasManager.GetInstance();

        cam = Camera.main;

        loadManagerRef = new LoadManager();
    }
Example #25
0
    // Start is called before the first frame update
    private void Awake()
    {
        instance = this;
        if (isReadyDone.Count > 0)
        {
            isReadyDone.Clear();
        }

        for (int i = 0; i < 10; i++)
        {
            isReadyDone.Add(false);
        }
        isDataLoaded = false;
    }
Example #26
0
    public void LoadDetails(JsonTextReader reader)
    {
        if (reader == null)
        {
            return;
        }
        string currValue = "";

        while (reader.Read())
        {
            if (reader.Value != null)
            {
                if (reader.TokenType == JsonToken.PropertyName)
                {
                    currValue = (string)reader.Value;
                }
                else
                {
                    switch (currValue)
                    {
                    case "Username": username = (string)reader.Value; break;

                    case "Human": human = (bool)reader.Value; break;

                    default: break;
                    }
                }
            }
            else if (reader.TokenType == JsonToken.StartObject || reader.TokenType == JsonToken.StartArray)
            {
                switch (currValue)
                {
                case "TeamColor": teamColor = LoadManager.LoadColor(reader); break;

                case "Resources": LoadResources(reader); break;

                case "Buildings": LoadBuildings(reader); break;

                case "Units": LoadUnits(reader); break;

                default: break;
                }
            }
            else if (reader.TokenType == JsonToken.EndObject)
            {
                return;
            }
        }
    }
Example #27
0
    // Use this for initialization
    void Awake()
    {
        if (load == null)
        {
            load = this;
        }
        else
        {
            Destroy(gameObject);
            return;
        }
        onScene = new Dictionary <Commandments.Shrines, GameObject>();

        destinyShrine = Commandments.Shrines.NEXUS;
    }
Example #28
0
    // Načte ze souboru postup hráče
    public void LoadState(string path)
    {
        _savePath  = path;
        _gameState = LoadManager.ReadFile <SaveableGameState>(_savePath);

        if (_gameState.firstTime)
        {
            GameManager.Instance.QuestUI.QueueMessage("Welcome, visit the shop on your left before you go to the battle."); // hardcoded
            GameManager.Instance.QuestUI.QueueMessage("For each defeated enemy you will receive a coin, if you manage to return here safely.");
            GameManager.Instance.QuestUI.QueueMessage("For each defeated enemy you will receive a coin, if you manage to return here safely.");
            GameManager.Instance.QuestUI.QueueMessage("Once you're ready enter the lit portal.");
            _gameState.firstTime = false;
            Save();
        }
    }
Example #29
0
    // Načte nastavení, případně vytvoří nové
    public SaveableSettings LoadSettings()
    {
        string fullPath = Path.Combine(Application.persistentDataPath, SETTINGS_FILE);

        if (LoadManager.FileExists(fullPath))
        {
            return(LoadManager.ReadFile <SaveableSettings>(fullPath));
        }
        else
        {
            SaveableSettings settings = new SaveableSettings();
            LoadManager.SaveFile <SaveableSettings>(fullPath, settings);
            return(settings);
        }
    }
 void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         if (instance != this)
         {
             Destroy(gameObject);
         }
     }
     DontDestroyOnLoad(this);
 }
Example #31
0
            internal void Start()
            {
                var scene = LoadManager.GetCurrentScene();

                if (scene == OWScene.SolarSystem)
                {
                    FixSleepTimerCanvas();
                }
                else if (scene == OWScene.TitleScreen)
                {
                    FixTitleMenuCanvases();
                    FixStarLogos();
                }
                ScreenCanvasesToWorld();
            }
 // Use this for initialization
 void Start()
 {
     m_gameproperties = m_instance.GetComponent<GameProperties>();
     m_inputmanager = gameObject.AddComponent<InputManager>();
     m_gamestatemanager = gameObject.AddComponent<GameStateManager>();
     m_commandmanager = gameObject.AddComponent<CommandManager>();
     m_loadmanager = gameObject.AddComponent<LoadManager>();
     m_enemymanager = gameObject.AddComponent<EnemyManager>();
     m_guimanager = gameObject.AddComponent<GUIManager>();
     m_bulletPoolManager = gameObject.AddComponent<BulletPoolManager>();
     m_enemyPoolManager = gameObject.AddComponent<EnemyPoolManager>();
     m_gamestatemanager.Init();
 }
    void Awake()
    {
        panels = new PanelsManager(OptionPanel, MenuPanel, RuntimePanel, MessagePanel, ShadowPanel, HeartPanel, LoadPanel, OpeningPanel);
        runtime = new RuntimeManager(RuntimePanel.GetComponentsInChildren<Button>(true));
        hearts = new HeartsManager();
        load = new LoadManager(LoadPanel);
        menu = new MenuManager(MenuPanel);
        opening = new OpeningManager(OpeningPanel);

        background = gameObject.GetComponent<Image>();
    }
 void Awake()
 {
     _instance = this;
     this._bundleToGroupDic = new Dictionary<string, List<string>> ();
     this._loadBundleVOMap = new Dictionary<string, LoadBundleVO> ();
     GameObject.DontDestroyOnLoad (this);
     this.init ();
 }