コード例 #1
0
    public void MoveToScene(INTERACTION _scenename)
    {
        string scene = _scenename.ToString();

        isOption       = false;
        Time.timeScale = 1;

        if (_scenename == INTERACTION.DUNGEON || _scenename == INTERACTION.LOBBY)
        {
            LoadingSceneController.LoadScene(scene);
        }
        else
        {
            SceneManager.LoadScene(scene);
        }
    }
コード例 #2
0
    private IEnumerator FlyButton()
    {
        ControllerEventHandler.PauseEvents();
        ScreenFader.FadeOut(Color.black, 0.85f);
        yield return(new WaitForSeconds(1f));

        if (PilotSaveManager.currentScenario.equipConfigurable)
        {
            LoadingSceneController.LoadSceneImmediate("VehicleConfiguration");
        }
        else
        {
            BGMManager.FadeOut(2f);
            Loadout loadout = new Loadout();
            loadout.normalizedFuel = PilotSaveManager.currentScenario.forcedFuel;
            loadout.hpLoadout      = new string[PilotSaveManager.currentVehicle.hardpointCount];
            loadout.cmLoadout      = new int[]
            {
                99999,
                99999
            };
            if (PilotSaveManager.currentScenario.forcedEquips != null)
            {
                foreach (CampaignScenario.ForcedEquip forcedEquip in PilotSaveManager.currentScenario.forcedEquips)
                {
                    loadout.hpLoadout[forcedEquip.hardpointIdx] = forcedEquip.weaponName;
                }
            }
            VehicleEquipper.loadout = loadout;
            if (PilotSaveManager.currentCampaign.isCustomScenarios)
            {
                VTScenario.LaunchScenario(VTResources.GetScenario(PilotSaveManager.currentScenario.scenarioID, PilotSaveManager.currentCampaign), false);
            }
            else
            {
                LoadingSceneController.LoadScene(PilotSaveManager.currentScenario.mapSceneName);
            }
        }
        ControllerEventHandler.UnpauseEvents();
    }
コード例 #3
0
 public void homeBtnTapped()
 {
     LoadingSceneController.loadingScenePreAnimationName = "";
     LoadingSceneController.LoadScene("HomeScene");
     //SDGameManager.Instance.ads
 }