Beispiel #1
0
    private void Start()
    {
        BattleHUD.Read();
        this.cameraController = GameObject.Find("Battle Camera").GetComponent <BattleMapCameraController> ();
        this.InitBattleScene();
        HonoluluBattleMain.UpdateFrameTime(FF9StateSystem.Settings.FastForwardFactor);
        GameObject gameObject = GameObject.Find("BattleMap Root");

        HonoluluBattleMain.battleSPS = new GameObject("BattleMap SPS")
        {
            transform =
            {
                parent = gameObject.transform
            }
        }.AddComponent <BattleSPSSystem> ();
        HonoluluBattleMain.battleSPS.Init();
        byte camera = FF9StateSystem.Battle.FF9Battle.btl_scene.PatAddr[(int)FF9StateSystem.Battle.FF9Battle.btl_scene.PatNum].Camera;

        FF9StateSystem.Battle.FF9Battle.seq_work_set.CameraNo = ((camera >= 3) ? checked ((byte)UnityEngine.Random.Range(0, 3)) : camera);
        SFX.StartBattle();
        if (FF9StateSystem.Settings.cfg.skip_btl_camera == 0UL && FF9StateSystem.Battle.isRandomEncounter)
        {
            SFX.SkipCameraAnimation(-1);
        }
        if (FF9StateSystem.Battle.isNoBoosterMap())
        {
            FF9StateSystem.Settings.IsBoosterButtonActive[0] = false;
            FF9StateSystem.Settings.SetBoosterHudToCurrentState();
            PersistenSingleton <UIManager> .Instance.Booster.SetBoosterButton(BoosterType.BattleAssistance, false);
        }
    }
Beispiel #2
0
 public void SetFastForward(bool isFastForward)
 {
     FF9StateSystem.Settings.IsBoosterButtonActive[1] = isFastForward;
     if (isFastForward)
     {
         if (PersistenSingleton <UIManager> .Instance.UnityScene == UIManager.Scene.Field)
         {
             if (EventHUD.CurrentHUD != MinigameHUD.Auction && EventHUD.CurrentHUD != MinigameHUD.PandoniumElevator)
             {
                 HonoBehaviorSystem.Instance.StartFastForwardMode();
                 if (!MBG.IsNull)
                 {
                     MBG.Instance.SetFastForward(true);
                 }
             }
         }
         else if (PersistenSingleton <UIManager> .Instance.UnityScene == UIManager.Scene.World)
         {
             HonoBehaviorSystem.Instance.StartFastForwardMode();
         }
         else if (PersistenSingleton <UIManager> .Instance.UnityScene == UIManager.Scene.Battle)
         {
             HonoluluBattleMain.UpdateFrameTime(HonoBehaviorSystem.Instance.GetFastForwardFactor());
         }
         else if (PersistenSingleton <UIManager> .Instance.UnityScene == UIManager.Scene.Ending && !MBG.IsNull)
         {
             MBG.Instance.SetFastForward(true);
         }
     }
     else if (PersistenSingleton <UIManager> .Instance.UnityScene == UIManager.Scene.Field)
     {
         HonoBehaviorSystem.Instance.StopFastForwardMode();
         if (!MBG.IsNull)
         {
             MBG.Instance.SetFastForward(false);
         }
     }
     else if (PersistenSingleton <UIManager> .Instance.UnityScene == UIManager.Scene.World)
     {
         HonoBehaviorSystem.Instance.StopFastForwardMode();
     }
     else if (PersistenSingleton <UIManager> .Instance.UnityScene == UIManager.Scene.Battle)
     {
         HonoluluBattleMain.UpdateFrameTime(1);
     }
     else if (PersistenSingleton <UIManager> .Instance.UnityScene == UIManager.Scene.Ending && !MBG.IsNull)
     {
         MBG.Instance.SetFastForward(false);
     }
     SoundLib.UpdatePlayingSoundEffectPitchByGameSpeed();
 }