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

@@ -123,6 +123,9 @@ public class objectiveEventSystem : MonoBehaviour
public bool resetSubobjectivesIfCancellingMission = true;
public bool missionCanBeReplayed;
public string timerPanelName = "Timer";
public string timerTextPanelName = "Timer Text";
@@ -305,7 +308,7 @@ public class objectiveEventSystem : MonoBehaviour
bool checkIfMissionCanBeStarted ()
{
if (!objectiveInProcess) {
if (objectiveComplete) {
if (objectiveComplete && !missionCanBeReplayed) {
if (showDebugPrint) {
print ("mission already complete, avoiding to set sub objective complete " + generalObjectiveName);
}
@@ -568,10 +571,23 @@ public class objectiveEventSystem : MonoBehaviour
return;
}
if (objectiveComplete) {
if (objectiveComplete && !missionCanBeReplayed) {
return;
}
//check to reset mission info if it is being replayed
if (missionCanBeReplayed) {
if (objectiveComplete) {
objectiveComplete = false;
rewardsObtained = false;
resetAllSubObjectives ();
currentSubObjectiveIndex = 0;
}
}
bool objectiveCanBeAdded = false;
if (currentObjectiveLogSystem != null && currentObjectiveLogSystem.isCheckMinLevelOnMissionsEnabled ()) {
@@ -998,7 +1014,6 @@ public class objectiveEventSystem : MonoBehaviour
if (saveGameOnMissionComplete) {
saveGameOnMissionStateChange ();
}
}
@@ -1184,6 +1199,11 @@ public class objectiveEventSystem : MonoBehaviour
return objectiveComplete;
}
public bool getMissionCanBeReplayed ()
{
return missionCanBeReplayed;
}
public bool isMissionCanBeCancelledEnabled ()
{
return missionCanBeCancelledEnabled;