game: assigning services with pens

This commit is contained in:
kookiekenobi 2025-02-16 19:01:04 +08:00
parent b1cd840297
commit a4e7e309ec
4 changed files with 2046 additions and 4 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,5 @@
/* /*
* Author: Shannon Goh * Author: Shannon Goh and Livinia Poo
* Date: 03/02/2025 * Date: 03/02/2025
* Description: Pen Interactor Handle script * Description: Pen Interactor Handle script
*/ */
@ -26,7 +26,7 @@ public class PenInteractor : MonoBehaviour
{ {
if(!stampDocScript.isSigned) if(!stampDocScript.isSigned)
{ {
stampDocScript.SignComCare(); PlayerDialogueInteraction.instance.servicesPanel.SetActive(true);
} }
} }
else else

View file

@ -22,6 +22,7 @@ public class PlayerDialogueInteraction : MonoBehaviour
public GameObject welcomeButton; public GameObject welcomeButton;
public GameObject questionPanel; public GameObject questionPanel;
public GameObject responsePanel; public GameObject responsePanel;
public GameObject servicesPanel;
public TextMeshProUGUI playerQuestionOneText; public TextMeshProUGUI playerQuestionOneText;
public TextMeshProUGUI playerQuestionTwoText; public TextMeshProUGUI playerQuestionTwoText;
@ -39,6 +40,15 @@ public class PlayerDialogueInteraction : MonoBehaviour
public GameObject takeDocumentsTick; public GameObject takeDocumentsTick;
public GameObject giveDocumentsTick; public GameObject giveDocumentsTick;
[Header("Services")]
public GameObject comcareServiceButton;
public GameObject fscServiceButton;
public GameObject peersServiceButton;
public GameObject transitionalSheltersServiceButton;
public GameObject cpsServiceButton;
public GameObject childrenYoungHomeServiceButton;
public GameObject sgEnableServiceButton;
void Awake() void Awake()
{ {
if (instance == null) if (instance == null)

View file

@ -78,6 +78,8 @@ public class StampDocument : MonoBehaviour
comcareSignature.SetActive(true); comcareSignature.SetActive(true);
isSigned = true; isSigned = true;
assignedDepartment = "ComCare"; assignedDepartment = "ComCare";
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
} }
public void SignFSC() public void SignFSC()
@ -85,6 +87,8 @@ public class StampDocument : MonoBehaviour
fscSignature.SetActive(true); fscSignature.SetActive(true);
isSigned = true; isSigned = true;
assignedDepartment = "Family Service Centres"; assignedDepartment = "Family Service Centres";
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
} }
public void SignPEERS() public void SignPEERS()
@ -92,6 +96,8 @@ public class StampDocument : MonoBehaviour
peersSignature.SetActive(true); peersSignature.SetActive(true);
isSigned = true; isSigned = true;
assignedDepartment = "PEERS"; assignedDepartment = "PEERS";
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
} }
public void SignTransitionalShelters() public void SignTransitionalShelters()
@ -99,6 +105,8 @@ public class StampDocument : MonoBehaviour
transitionalShelterSignature.SetActive(true); transitionalShelterSignature.SetActive(true);
isSigned = true; isSigned = true;
assignedDepartment = "Transitional Shelters"; assignedDepartment = "Transitional Shelters";
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
} }
public void SignCPS() public void SignCPS()
@ -106,6 +114,8 @@ public class StampDocument : MonoBehaviour
cpsSignature.SetActive(true); cpsSignature.SetActive(true);
isSigned = true; isSigned = true;
assignedDepartment = "CPS"; assignedDepartment = "CPS";
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
} }
public void SignChildrenYoungHome() public void SignChildrenYoungHome()
@ -113,6 +123,8 @@ public class StampDocument : MonoBehaviour
childrenYoungHomeSignature.SetActive(true); childrenYoungHomeSignature.SetActive(true);
isSigned = true; isSigned = true;
assignedDepartment = "Children and Young Persons Homes"; assignedDepartment = "Children and Young Persons Homes";
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
} }
public void SignSGEnable() public void SignSGEnable()
@ -120,5 +132,7 @@ public class StampDocument : MonoBehaviour
sgEnableSignature.SetActive(true); sgEnableSignature.SetActive(true);
isSigned = true; isSigned = true;
assignedDepartment = "SG Enable"; assignedDepartment = "SG Enable";
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
} }
} }