add some extra assets FX and SFX

This commit is contained in:
Robii Aragon
2026-03-29 23:03:14 -07:00
parent 6ef3eb1535
commit 24dc66a81e
10142 changed files with 2535978 additions and 36608 deletions

View File

@@ -185,6 +185,9 @@ public class mapSystem : MonoBehaviour
public bool miniMapWindowSmoothOpening = true;
public bool miniMapWindowWithMask;
public bool checkMinimapWindowActiveStateOnOtherMenusEnabled;
public mapCameraMovement mapCameraMovementType;
public enum mapCameraMovement
@@ -377,6 +380,8 @@ public class mapSystem : MonoBehaviour
public bool checkElementsOnAwakeEnabled = true;
bool checkHideMapWindowActive;
void Awake ()
{
if (checkElementsOnAwakeEnabled) {
@@ -747,6 +752,22 @@ public class mapSystem : MonoBehaviour
if (mainMapUISystemAssigned) {
mainMapUISystem.setCurrentFloorNumberText ((currentFloorNumber).ToString ());
}
} else {
if (checkMinimapWindowActiveStateOnOtherMenusEnabled) {
if (pauseManager.isPlayerMenuActive ()) {
if (!checkHideMapWindowActive) {
setMapWindowActiveState (false);
checkHideMapWindowActive = true;
}
} else {
if (checkHideMapWindowActive) {
setMapWindowActiveState (true);
checkHideMapWindowActive = false;
}
}
}
}
}
}
@@ -2351,7 +2372,17 @@ public class mapSystem : MonoBehaviour
return;
}
openOrCloseMenuPanel (!mapOpened);
bool checkResult =
(!playerControllerManager.isPlayerMenuActive () || mapOpened) &&
(!playerControllerManager.isUsingDevice () || playerControllerManager.isPlayerDriving ()) &&
!pauseManager.isGamePaused ();
if (checkResult) {
openOrCloseMenuPanel (!mapOpened);
}
}
}
@@ -2674,6 +2705,18 @@ public class mapSystem : MonoBehaviour
}
}
}
if (mapOpened) {
if (checkMinimapWindowActiveStateOnOtherMenusEnabled) {
if (checkHideMapWindowActive) {
setMapWindowActiveState (true);
checkHideMapWindowActive = false;
}
} else {
setMapWindowActiveState (true);
}
}
}
}
@@ -2768,6 +2811,28 @@ public class mapSystem : MonoBehaviour
}
}
public void checkMapWindowActiveIfOtherMenuOpened ()
{
if (mapEnabled) {
if (!mapOpened) {
if (pauseManager.isPlayerMenuActive ()) {
setMapWindowActiveState (false);
} else {
setMapWindowActiveState (true);
}
}
}
}
public void setMapWindowActiveState (bool state)
{
if (mainMapUISystemAssigned) {
if (mapWindow.gameObject.activeSelf != state) {
mapWindow.gameObject.SetActive (state);
}
}
}
public float getDeltaTime ()
{
if (pauseManager.isRegularTimeScaleActive ()) {