// Update is called once per frame void Update() { if (isDecreasingVolOfAudInfos) { for (int i = 0; i < audInfosToDecreaseVol.Length; i++) { audInfosToDecreaseVol[i].SetCustomVolume(audInfosToDecreaseVol[i].customVolume - audInfsDecVolSpeed * Time.deltaTime); } } #region LastPics 0 Start BG if (showLastPicsState == 0) { hud_Group_LastPics.hudControls[0].SetAlpha(0); hud_Group_LastPics.hudControls[0].StartIncreasingAlpha(LastPicsBGAlphaSpeed); hud_Group_LastPics.hudControls[0].SetIsVisible(true); timeCounter = 1 / LastPicsBGAlphaSpeed + delayTimeToStartFirstPicAfterBlackBG; showLastPicsState = 1; } #endregion #region LastPics 1 W8 for BG if (showLastPicsState == 1) { timeCounter = MathfPlus.DecByDeltatimeToZero(timeCounter); if (timeCounter == 0) { showLastPicsState = 2; } } #endregion #region LastPics 2 Choosing pic if (showLastPicsState == 2) { if (hud_Group_LastPics.hudControls[curPicIndex + 1].controlName != HUDControlName.LvlFlashback_FA_Logo) { timeCounter = delayBetweenPics; hud_Group_LastPics.hudControls[curPicIndex].SetAlpha(0); hud_Group_LastPics.hudControls[curPicIndex].SetIsVisible(true); hud_Group_LastPics.hudControls[curPicIndex].ShowForAWhile(eachPicShowTime, eachPicAlphaSpeed, eachPicAlphaSpeed); curPicIndex++; showLastPicsState = 3; } else { timeCounter = lastPicTotalTime; hud_Group_LastPics.hudControls[curPicIndex].SetAlpha(0); hud_Group_LastPics.hudControls[curPicIndex].SetIsVisible(true); hud_Group_LastPics.hudControls[curPicIndex].ShowForAWhile(lastPicShowTime, lastPicStartAlphaSpeed, lastPicEndAlphaSpeed); showLastPicsState = 4; } } #endregion #region LastPics 3 Showing selected Pic if (showLastPicsState == 3) { timeCounter = MathfPlus.DecByDeltatimeToZero(timeCounter); if (timeCounter == 0) { showLastPicsState = 2; } } #endregion #region LastPics 4 Showing Last Pic if (showLastPicsState == 4) { timeCounter = MathfPlus.DecByDeltatimeToZero(timeCounter); if (timeCounter == 0) { showLastPicsState = 5; } } #endregion #region LastPics 5 Start FA Logo if (showLastPicsState == 5) { timeCounter = FALogoTotalTime; HUDControl hudControl_FA = hud_Group_LastPics.GetChildControlByName(HUDControlName.LvlFlashback_FA_Logo); hudControl_FA.SetAlpha(0); hudControl_FA.SetIsVisible(true); hudControl_FA.ShowForAWhile(FALogoShowTime, FALogoStartAlphaSpeed, FALogoEndAlphaSpeed); showLastPicsState = 6; } #endregion #region LastPics 6 Showing FA Logo if (showLastPicsState == 6) { timeCounter = MathfPlus.DecByDeltatimeToZero(timeCounter); if (timeCounter == 0) { showLastPicsState = 7; } } #endregion }
public HUDControl GetControlInGroup(HUDGroupName _groupName, HUDControlName _controlName) { HUDGroup hg = GetChildGroupByName(_groupName); return(hg.GetChildControlByName(_controlName)); }