示例#1
0
 public override void Interact()
 {
     if (!ProgressData.Evaluate(ProgressPoint.EnteredWormhole))
     {
         DialogueUIManager.getInstance.DisplayDialogueEvent(EventDB.GetByID(1100));
     }
     else
     {
         RuntimeData.GenerateNewSystem();
         SceneManager.LoadSceneAsync("Overworld");
     }
 }
    public static void Initialize()
    {
        CleanUp();

        if (RuntimeData.system == null)
        {
            RuntimeData.GenerateNewSystem();
        }

        RuntimeData.system.Instantiate();

        if (!RuntimeData.system.pointsOfInterest.Contains(PlayerData.fleet))
        {
            RuntimeData.system.AddPointOfInterest(PlayerData.fleet);
        }

        _random = new Random(RuntimeData.system.seed);

        //add slot for player
        //this was f*****g retarded

        _uiManager = OverworldUIManager.getInstance;
        _uiManager.Initialize();

        _cameraManager = OverworldCameraManager.getInstance;
        _cameraManager.JumpTo(PlayerData.fleet.location);

        ToolbarManager.getInstance.Initialize();

        //loading complete callback
        if (!ProgressData.Evaluate(ProgressPoint.ReceivedStartEvent))
        {
            DialogueUIManager.getInstance.DisplayDialogueEvent(EventDB.GetStart());
        }

        UpdateSpawnChance();
        EndCurrentTurn();
    }
示例#3
0
 static void GenerateNewSystem()
 {
     RuntimeData.GenerateNewSystem();
 }