game: assigning services with pens
This commit is contained in:
parent
b1cd840297
commit
a4e7e309ec
4 changed files with 2046 additions and 4 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Author: Shannon Goh
|
||||
* Author: Shannon Goh and Livinia Poo
|
||||
* Date: 03/02/2025
|
||||
* Description: Pen Interactor Handle script
|
||||
*/
|
||||
|
@ -26,7 +26,7 @@ public class PenInteractor : MonoBehaviour
|
|||
{
|
||||
if(!stampDocScript.isSigned)
|
||||
{
|
||||
stampDocScript.SignComCare();
|
||||
PlayerDialogueInteraction.instance.servicesPanel.SetActive(true);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -22,6 +22,7 @@ public class PlayerDialogueInteraction : MonoBehaviour
|
|||
public GameObject welcomeButton;
|
||||
public GameObject questionPanel;
|
||||
public GameObject responsePanel;
|
||||
public GameObject servicesPanel;
|
||||
|
||||
public TextMeshProUGUI playerQuestionOneText;
|
||||
public TextMeshProUGUI playerQuestionTwoText;
|
||||
|
@ -39,6 +40,15 @@ public class PlayerDialogueInteraction : MonoBehaviour
|
|||
public GameObject takeDocumentsTick;
|
||||
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()
|
||||
{
|
||||
if (instance == null)
|
||||
|
|
|
@ -78,6 +78,8 @@ public class StampDocument : MonoBehaviour
|
|||
comcareSignature.SetActive(true);
|
||||
isSigned = true;
|
||||
assignedDepartment = "ComCare";
|
||||
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
|
||||
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
|
||||
}
|
||||
|
||||
public void SignFSC()
|
||||
|
@ -85,6 +87,8 @@ public class StampDocument : MonoBehaviour
|
|||
fscSignature.SetActive(true);
|
||||
isSigned = true;
|
||||
assignedDepartment = "Family Service Centres";
|
||||
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
|
||||
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
|
||||
}
|
||||
|
||||
public void SignPEERS()
|
||||
|
@ -92,6 +96,8 @@ public class StampDocument : MonoBehaviour
|
|||
peersSignature.SetActive(true);
|
||||
isSigned = true;
|
||||
assignedDepartment = "PEERS";
|
||||
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
|
||||
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
|
||||
}
|
||||
|
||||
public void SignTransitionalShelters()
|
||||
|
@ -99,6 +105,8 @@ public class StampDocument : MonoBehaviour
|
|||
transitionalShelterSignature.SetActive(true);
|
||||
isSigned = true;
|
||||
assignedDepartment = "Transitional Shelters";
|
||||
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
|
||||
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
|
||||
}
|
||||
|
||||
public void SignCPS()
|
||||
|
@ -106,6 +114,8 @@ public class StampDocument : MonoBehaviour
|
|||
cpsSignature.SetActive(true);
|
||||
isSigned = true;
|
||||
assignedDepartment = "CPS";
|
||||
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
|
||||
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
|
||||
}
|
||||
|
||||
public void SignChildrenYoungHome()
|
||||
|
@ -113,6 +123,8 @@ public class StampDocument : MonoBehaviour
|
|||
childrenYoungHomeSignature.SetActive(true);
|
||||
isSigned = true;
|
||||
assignedDepartment = "Children and Young Persons Homes";
|
||||
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
|
||||
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
|
||||
}
|
||||
|
||||
public void SignSGEnable()
|
||||
|
@ -120,5 +132,7 @@ public class StampDocument : MonoBehaviour
|
|||
sgEnableSignature.SetActive(true);
|
||||
isSigned = true;
|
||||
assignedDepartment = "SG Enable";
|
||||
PlayerDialogueInteraction.instance.servicesPanel.SetActive(false);
|
||||
PlayerDialogueInteraction.instance.questionPanel.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue