Example #1
0
    private void OnPreStartGame()
    {
        FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();

        fadeSystem.FadeOut(FadeType.All, new VDelegate(this.OnStartGame), 2f, null);
        CursorManager.Get().ShowCursor(false);
    }
Example #2
0
    private void OnFadOutEnd()
    {
        this.SetActiveScreenInternal(this.m_ScreenToShow);
        FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();

        fadeSystem.FadeIn(FadeType.All, null, 4f);
    }
Example #3
0
    private void Start()
    {
        ShotMax    = 10;
        ShotCount  = 0;
        ShotDelay  = 60;
        Reset      = 0;
        BossSaveHP = 0.0f;

        LeftSide   = RightSide = false;
        CenterSide = true;
        LCheck     = CCheck = RCheck = false;
        BossBody   = false;
        LeftLock.SetActive(true);
        RightLock.SetActive(true);
        LeftLockImage.enabled   = RightLockImage.enabled = false;
        CenterLockImage.enabled = true;

        fadeSystem = gameObject.GetComponent <FadeSystem>();

        reloadProc  = gameObject.GetComponent <ReloadProc>();
        hitEnemyHP  = gameObject.GetComponent <HitEnemyHP>();
        e_PartsProc = gameObject.GetComponent <E_PartsProc>();

        audioSource = gameObject.GetComponent <AudioSource>();
    }
Example #4
0
    private void LoadGame()
    {
        SaveGame.Load("Slot" + this.m_SlotIdx.ToString() + ".sav");
        FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();

        fadeSystem.FadeOut(FadeType.All, new VDelegate(this.OnLoadGameEnd), 1f, null);
    }
 public void WakeUpOnFade()
 {
     this.m_PassingOutProgress = 0f;
     this.SetState(ConsciousnessController.ConsciousnessState.WakingUp);
     this.m_Animator.SetInteger(this.m_PassOutHash, 2);
     FadeSystem.Get().FadeIn(FadeType.All, null, 1.5f);
 }
Example #6
0
    public void OnLoadingEndFadeOut()
    {
        LoadingScreen.Get().Hide();
        FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();

        fadeSystem.FadeIn(FadeType.Vis, null, 1.5f);
    }
Example #7
0
 protected override void Update()
 {
     base.Update();
     HUDStartSurvivalSplash.State state = this.m_State;
     if (state != HUDStartSurvivalSplash.State.Enter)
     {
         if (state != HUDStartSurvivalSplash.State.Normal)
         {
             if (state == HUDStartSurvivalSplash.State.Exit)
             {
                 if (this.m_Text.color.a > 0f)
                 {
                     Color color = this.m_Text.color;
                     color.a          -= Time.deltaTime;
                     color.a           = Mathf.Clamp01(color.a);
                     this.m_Text.color = color;
                 }
                 else if (this.m_CanvasGroup.alpha > 0f)
                 {
                     this.m_CanvasGroup.alpha -= Time.deltaTime;
                     this.m_CanvasGroup.alpha  = Mathf.Clamp01(this.m_CanvasGroup.alpha);
                     if (this.m_CanvasGroup.alpha == 0f)
                     {
                         this.m_Active = false;
                     }
                 }
             }
         }
         else if (Input.GetKeyDown(KeyCode.Space))
         {
             if (this.m_WasPause)
             {
                 MainLevel.Instance.Pause(false);
             }
             this.m_State = HUDStartSurvivalSplash.State.Exit;
         }
         else if (!MainLevel.Instance.IsPause() && FadeSystem.Get().CanStartFade())
         {
             this.m_WasPause = true;
             MainLevel.Instance.Pause(true);
         }
     }
     else if (this.m_CanvasGroup.alpha < 1f)
     {
         this.m_CanvasGroup.alpha += Time.deltaTime;
         this.m_CanvasGroup.alpha  = Mathf.Clamp01(this.m_CanvasGroup.alpha);
     }
     else
     {
         Color color2 = this.m_Text.color;
         color2.a         += Time.deltaTime;
         color2.a          = Mathf.Clamp01(color2.a);
         this.m_Text.color = color2;
         if (color2.a == 1f)
         {
             this.m_State = HUDStartSurvivalSplash.State.Normal;
         }
     }
 }
Example #8
0
 public override void OnInputAction(InputsManager.InputAction action)
 {
     if ((action == InputsManager.InputAction.Quit || action == InputsManager.InputAction.AdditionalQuit) && GreenHellGame.GetFadeSystem().CanStartFade())
     {
         FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();
         fadeSystem.FadeOut(FadeType.All, new VDelegate(this.StopMinigame), 1.5f, null);
     }
 }
Example #9
0
    private void StartMinigame()
    {
        this.SetCamera();
        FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();

        fadeSystem.FadeIn(FadeType.All, null, 1.5f);
        this.m_SkyDome.gameObject.SetActive(false);
    }
 public void WakeUp()
 {
     this.m_StartPassOutTime = 0f;
     if (!FadeSystem.Get().m_FadingOut&& !FadeSystem.Get().m_FadeOut)
     {
         FadeSystem.Get().FadeOut(FadeType.All, new VDelegate(this.WakeUpOnFade), 1.5f, null);
     }
 }
Example #11
0
 public void FadeIn()
 {
     if (SaveGame.m_State == SaveGame.State.None)
     {
         FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();
         fadeSystem.FadeIn(FadeType.All, null, 1.5f);
     }
 }
Example #12
0
    private void Teleport()
    {
        Player.Get().gameObject.transform.position = this.m_TeleportPos.transform.position;
        Player.Get().UnblockMoves();
        Player.Get().UnblockRotation();
        FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();

        fadeSystem.FadeIn(FadeType.All, null, 1.5f);
    }
Example #13
0
 public void FadeOutWithScreen(string prefab_name)
 {
     if (SaveGame.m_State == SaveGame.State.None)
     {
         FadeSystem fadeSystem    = GreenHellGame.GetFadeSystem();
         GameObject screen_prefab = Resources.Load <GameObject>("Prefabs/Systems/" + prefab_name);
         fadeSystem.FadeOut(FadeType.All, null, 1.5f, screen_prefab);
     }
 }
Example #14
0
    void Start()
    {
        Value       = 0;
        E_AttackCnt = 0;

        fadeSystem = gameObject.GetComponent <FadeSystem>();

        hitEnemyHP  = gameObject.GetComponent <HitEnemyHP>();
        e_AttackSet = gameObject.GetComponent <E_AttackSet>();
    }
Example #15
0
    public void OnYesFromDialog()
    {
        FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();

        fadeSystem.FadeOut(FadeType.All, new VDelegate(this.OnLoadGame), 1f, null);
        this.m_MenuInGameManager.HideMenu();
        CursorManager.Get().ShowCursor(false);
        this.m_Loading            = true;
        this.m_WaitingForDecision = false;
    }
Example #16
0
 private void UpdateReturnToMainMenuLoadingScreen()
 {
     if (LoadingScreen.Get() != null && LoadingScreen.Get().m_Active&& LoadingScreen.Get().m_State == LoadingScreenState.ReturnToMainMenu && SceneManager.GetSceneByName("MainMenu").IsValid())
     {
         FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();
         if (!fadeSystem.m_FadeOut && !fadeSystem.m_FadingOut)
         {
             fadeSystem.FadeOut(FadeType.Vis, new VDelegate(this.OnLoadingEndFadeOut), 1.5f, null);
         }
     }
 }
Example #17
0
    void Start()
    {
        Setvalue       = 0;
        AttackSetCount = 0;

        fadeSystem = gameObject.GetComponent <FadeSystem>();

        hitEnemyHP  = gameObject.GetComponent <HitEnemyHP>();
        enemyAttack = gameObject.GetComponent <EnemyAttack>();
        preOpeProc  = gameObject.GetComponent <PreOpeProc>();
    }
Example #18
0
 public override void OnExecute(TriggerAction.TYPE action)
 {
     base.OnExecute(action);
     if (action == TriggerAction.TYPE.ClimbHold)
     {
         Player.Get().BlockMoves();
         Player.Get().BlockRotation();
         FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();
         fadeSystem.FadeOut(FadeType.All, new VDelegate(this.Teleport), 1.5f, null);
     }
 }
Example #19
0
    private void StopMinigame()
    {
        this.m_SkyDome.gameObject.SetActive(true);
        this.ResetCamera();
        FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();

        fadeSystem.FadeIn(FadeType.All, null, 1.5f);
        this.m_Player.SetWantedItem(Hand.Left, null, true);
        this.m_Player.SetWantedItem(Hand.Right, null, true);
        this.Stop();
    }
Example #20
0
    void Start()
    {
        Damage        = 0.001f;
        HitCheck      = false;
        HitRangeCheck = false;

        fadeSystem      = gameObject.GetComponent <FadeSystem>();
        GetHPSkillPoint = ClickControll.GetHPSkill();

        audioSource = gameObject.GetComponent <AudioSource>();
    }
Example #21
0
    public void OnStartGame()
    {
        LoadingScreen.Get().Show(LoadingScreenState.StartGame);
        GreenHellGame.Instance.m_FromSave = false;
        Music.Get().Stop(1f);
        MainMenuManager.Get().HideAllScreens();
        FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();

        fadeSystem.FadeIn(FadeType.All, null, 2f);
        base.Invoke("OnStartGameDelayed", 1f);
    }
Example #22
0
 public void WakeUpOnFade()
 {
     this.m_Player.UnblockMoves();
     this.m_Player.UnblockRotation();
     this.m_MovesBlocked       = false;
     this.m_PassingOutProgress = 0f;
     this.ApplyParamsOnWakeUp();
     this.SetState(ConsciousnessController.ConsciousnessState.None);
     this.Stop();
     this.m_Animator.SetInteger(this.m_PassOutHash, 2);
     FadeSystem.Get().FadeIn(FadeType.All, null, 1.5f);
 }
Example #23
0
    public void Respawn()
    {
        this.m_InjuryModule.ResetInjuries();
        this.m_ConditionModule.ResetParams();
        this.m_Player.GetComponent <SleepController>().UpdateLastWakeUpTime();
        SaveGame.Load();
        this.m_Animator.SetBool(this.m_IsDeadHash, false);
        this.m_Animator.SetBool(this.m_IsDeadUnderwaterHash, false);
        this.Stop();
        FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();

        fadeSystem.FadeIn(FadeType.All, null, 1.5f);
    }
Example #24
0
 public void SetActiveScreen(Type screen_type, bool with_fade = true)
 {
     if (with_fade)
     {
         this.m_ScreenToShow = screen_type;
         FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();
         fadeSystem.FadeOut(FadeType.All, new VDelegate(this.OnFadOutEnd), 4f, null);
     }
     else
     {
         this.SetActiveScreenInternal(screen_type);
     }
 }
Example #25
0
 private void UpdateLoading()
 {
     if (LoadingScreen.Get() != null && LoadingScreen.Get().m_Active&& LoadingScreen.Get().m_State != LoadingScreenState.ReturnToMainMenu)
     {
         bool flag = true;
         if (Time.unscaledTime - Player.Get().GetTeleportTime() < 1f)
         {
             flag = false;
         }
         if (this.m_Streamers.Count > 0)
         {
             for (int i = 0; i < this.m_Streamers.Count; i++)
             {
                 if (this.m_Streamers[i].IsSomethingToLoad())
                 {
                     flag = false;
                     break;
                 }
             }
         }
         if (flag)
         {
             this.m_HideLoadingScreenFrameCount++;
         }
         if (GreenHellGame.Instance.m_LoadGameState == LoadGameState.PreloadScheduled)
         {
             SaveGame.PlayerLoad();
         }
         else if (GreenHellGame.Instance.m_LoadGameState == LoadGameState.PreloadCompleted)
         {
             GreenHellGame.Instance.m_LoadGameState = LoadGameState.FullLoadScheduled;
         }
         else if (this.m_HideLoadingScreenFrameCount > 5 && GreenHellGame.Instance.m_LoadGameState == LoadGameState.FullLoadScheduled)
         {
             SaveGame.FullLoad();
         }
         else if (GreenHellGame.Instance.m_LoadGameState == LoadGameState.FullLoadCompleted)
         {
             GreenHellGame.Instance.m_LoadGameState = LoadGameState.None;
         }
         if (this.m_HideLoadingScreenFrameCount > 5 && GreenHellGame.Instance.m_LoadGameState == LoadGameState.None)
         {
             FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();
             if (!fadeSystem.m_FadeIn && !fadeSystem.m_FadingIn)
             {
                 fadeSystem.FadeOut(FadeType.All, new VDelegate(this.OnLoadingEndFadeOut), 2f, null);
             }
         }
     }
 }
Example #26
0
    void Start()
    {
        AtkEnd           = false;
        AttackStart      = false;
        SetAttackPlaneNo = 0;
        AttackCount      = 0;
        value            = 0;

        fadeSystem = gameObject.GetComponent <FadeSystem>();

        colorChange = gameObject.GetComponent <ColorChange>();
        hitEnemyHP  = gameObject.GetComponent <HitEnemyHP>();
        e_AttackSet = gameObject.GetComponent <E_AttackSet>();
    }
Example #27
0
    public void OnLoadingEndFadeOut()
    {
        LoadingScreen.Get().Hide();
        this.m_HideLoadingScreenFrameCount = 0;
        this.StartRainForestAmbienceMultisample();
        FadeSystem fadeSystem = GreenHellGame.GetFadeSystem();

        fadeSystem.FadeIn(FadeType.All, null, 2f);
        if (Player.Get().m_MovesBlockedOnChangeScene)
        {
            Player.Get().UnblockMoves();
            Player.Get().m_MovesBlockedOnChangeScene = false;
        }
        Player.Get().SetupActiveController();
    }
Example #28
0
    /*
     * static ClickControll clickControll;
     * clickControll = GetComponent<ClickControll>();
     * GetAtkSkillPoint = clickControll.GetAtkSkill();
     *
     * はエラーがでる.
     */
    void Start()
    {
        Damage            = 0.001f;
        SaveDamage        = 1.0f;
        SkillDamage       = 0.0f;
        HitCheck          = false;
        PartDamage        = 0.02f; //1.0f=100 , 0.01f = 0.01.
        image.enabled     = true;
        imageBack.enabled = true;

        fadeSystem       = gameObject.GetComponent <FadeSystem>();
        GetAtkSkillPoint = ClickControll.GetAtkSkill();

        audioSource = gameObject.GetComponent <AudioSource>();
    }
Example #29
0
        void Start()
        {
            if (!this.GetComponent <FadeSystem>())
            {
                fadeSystem = this.gameObject.AddComponent <FadeSystem>();
            }

            audioSource = GetComponent <AudioSource>();

            audioSource.volume = 0f;
            title.color        = new Color(1f, 1f, 1f, 0f);
            startButton.color  = new Color(1f, 1f, 1f, 0f);
            exitButton.color   = new Color(1f, 1f, 1f, 0f);

            StartCoroutine(IntroTimeline());
        }
Example #30
0
    void Awake()
    {
        Manager.GameManager.Instance.AddPlayer(this.gameObject);

        if (fadeSystem == null)
        {
            fadeSystem = gameObject.AddComponent <FadeSystem>();
        }

        if (photonView.isMine)
        {
            BindMainCameraTarget();

            // PhotonNetwork.player.CustomProperties["Color"] = NetworkManager.Instance.GetPlayerColor();
        }
    }