make it rain on day 2

This commit is contained in:
yauwailam 2025-02-14 10:38:31 +08:00
parent b2bab5ea33
commit 2cac8bc325
3 changed files with 13 additions and 3 deletions

View file

@ -1,5 +1,5 @@
/*
Author: Reza
Author: Reza and Wai Lam
Date: 3/2/25
Description: To keep track of tasks, which level the player is at, and game mechanics
*/

View file

@ -1,5 +1,5 @@
/*
Author: Wai Lam
Author: Wai Lam and Reza
Date: 12/2/25
Description: Go to school
*/
@ -8,6 +8,7 @@ using System.Collections.Generic;
using UnityEngine;
using TMPro;
using UnityEngine.SceneManagement;
public class GoToSchool : MonoBehaviour
{
private GameManager gameManager;
@ -22,6 +23,8 @@ public class GoToSchool : MonoBehaviour
public AudioLoop audioLoop;
public ParticleSystem[] particleEffects;
// Defines UI references
[Header("UI References")]
public GameObject storyPanelUI;
@ -68,6 +71,13 @@ public class GoToSchool : MonoBehaviour
storyText.text = "I need to calm down first... maybe going to the park pond would help...";
StartCoroutine(ClearMessageAfterSeconds(7f));
}
foreach (ParticleSystem effect in particleEffects)
{
effect.gameObject.SetActive(true); // Ensure the GameObject is active
effect.Play(); // Play each particle system
}
}
}

View file

@ -1,5 +1,5 @@
/*
Author: Reza
Author: Reza and Wai Lam
Date: 10/2/25
Description: Verifies whether tasks in the house are completed before going to the next scene
*/