add some extra assets FX and SFX
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user