Fixed bug with spies receiving guard notifications.
This commit is contained in:
parent
794614dd13
commit
cfd8448087
2 changed files with 2 additions and 10 deletions
|
@ -67,6 +67,7 @@ public class GameManager : Photon.PunBehaviour {
|
||||||
cameraRig.GetComponentInChildren<ThirdPersonCameraController>().SetTarget(spy.transform);
|
cameraRig.GetComponentInChildren<ThirdPersonCameraController>().SetTarget(spy.transform);
|
||||||
|
|
||||||
missionPanel.SetActive(true);
|
missionPanel.SetActive(true);
|
||||||
|
MissionTracker.IsGuard = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PhotonNetwork.isMasterClient)
|
if (PhotonNetwork.isMasterClient)
|
||||||
|
|
|
@ -46,7 +46,6 @@ public class MissionTracker : Photon.PunBehaviour
|
||||||
{
|
{
|
||||||
private string mAlertText; // text shown to overseers after mission completes
|
private string mAlertText; // text shown to overseers after mission completes
|
||||||
private string mDescription; // description of the mission for agents
|
private string mDescription; // description of the mission for agents
|
||||||
private string mName; // name of the mission, for dev identification
|
|
||||||
|
|
||||||
public string AlertText { get { return mAlertText; } }
|
public string AlertText { get { return mAlertText; } }
|
||||||
|
|
||||||
|
@ -54,13 +53,10 @@ public class MissionTracker : Photon.PunBehaviour
|
||||||
|
|
||||||
public string Description { get { return mDescription; } }
|
public string Description { get { return mDescription; } }
|
||||||
|
|
||||||
public string Name { get { return mName; } }
|
public Mission(string description, string alertText)
|
||||||
|
|
||||||
public Mission(string name, string description, string alertText)
|
|
||||||
{
|
{
|
||||||
mAlertText = alertText;
|
mAlertText = alertText;
|
||||||
mDescription = description;
|
mDescription = description;
|
||||||
mName = name;
|
|
||||||
Completed = false;
|
Completed = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -130,35 +126,30 @@ public class MissionTracker : Photon.PunBehaviour
|
||||||
mGuardIncorrectGuesses = 0;
|
mGuardIncorrectGuesses = 0;
|
||||||
|
|
||||||
/*mMissionLog["statue_swap"] = new Mission(
|
/*mMissionLog["statue_swap"] = new Mission(
|
||||||
"statue_swap",
|
|
||||||
"Replace the marked statue with a bugged replica.",
|
"Replace the marked statue with a bugged replica.",
|
||||||
"We're picking up some electromagnetic interference. " +
|
"We're picking up some electromagnetic interference. " +
|
||||||
"Enemy forces have planted listening devices somewhere on the premises!"
|
"Enemy forces have planted listening devices somewhere on the premises!"
|
||||||
);*/
|
);*/
|
||||||
|
|
||||||
mMissionLog["HideMessage"] = new Mission(
|
mMissionLog["HideMessage"] = new Mission(
|
||||||
"book_message",
|
|
||||||
"Plant critical intelligence in the designated book.",
|
"Plant critical intelligence in the designated book.",
|
||||||
"One of the staff saw someone suspicious over by the bookcases. " +
|
"One of the staff saw someone suspicious over by the bookcases. " +
|
||||||
"The enemy moves among us."
|
"The enemy moves among us."
|
||||||
);
|
);
|
||||||
|
|
||||||
/*mMissionLog["bathroom_kill"] = new Mission(
|
/*mMissionLog["bathroom_kill"] = new Mission(
|
||||||
"bathroom_kill",
|
|
||||||
"Assassinate Knight-Captain Brystol in the bathroom.",
|
"Assassinate Knight-Captain Brystol in the bathroom.",
|
||||||
"Our men found Knight-Captain Brystol dead in the bathroom. " +
|
"Our men found Knight-Captain Brystol dead in the bathroom. " +
|
||||||
"The enemy must be stopped!"
|
"The enemy must be stopped!"
|
||||||
);*/
|
);*/
|
||||||
|
|
||||||
/*mMissionLog["npc_dance"] = new Mission(
|
/*mMissionLog["npc_dance"] = new Mission(
|
||||||
"npc_dance",
|
|
||||||
"Dance with Duchess Castra to distract her momentarily.",
|
"Dance with Duchess Castra to distract her momentarily.",
|
||||||
"The peace talks progress poorly. Duchess Castra keeps getting distracted on the dance floor. " +
|
"The peace talks progress poorly. Duchess Castra keeps getting distracted on the dance floor. " +
|
||||||
"Could this be a strategy of our enemies?"
|
"Could this be a strategy of our enemies?"
|
||||||
);*/
|
);*/
|
||||||
|
|
||||||
mMissionLog["TellSecret"] = new Mission(
|
mMissionLog["TellSecret"] = new Mission(
|
||||||
"pass_secret",
|
|
||||||
"Trade intelligence with another spy at the party.",
|
"Trade intelligence with another spy at the party.",
|
||||||
"One of our staff members spotted two individuals exchanging a secret. " +
|
"One of our staff members spotted two individuals exchanging a secret. " +
|
||||||
"Enemy infiltrators abound."
|
"Enemy infiltrators abound."
|
||||||
|
|
Reference in a new issue