Skip to content

4. Mini Game Scripts

Raphaël Tétreault edited this page Sep 6, 2025 · 19 revisions

#TODO explain p1 p2, testing

Overview

This project provides scripts to create mini game gameplay loop. It provides a replacement to MonoBehaviour which provides a more detailed event functions that map into a consistent mini game loop. The MiniGameBehaviour is the class to derive in this case. The MiniGameManager is the script that manages all behaviour scripts.

There are a number of supporting scripts, too. These will be cover in brief. To see all files, review the following directory: Assets/Scripts

Mini Game Loop

The left half in orange shows the how the functions on the right are trigger in a mini game. Some are automatic based on familiar Unity MonoBehaviour events, while others are time, and more still manually triggered (either optionally or required).

MiniGameManager

File: Assets/Scripts/MiniGameBehaviour.cs

MiniGameBehaviour

File: Assets/Scripts/MiniGameManager.cs

Supporting Scripts

MiniGameKicker

Assets/Scripts/MiniGameManagerKicker.cs

TODO DESCRIPTION

MinGameManager*TimerUI

There are two timer variants. One that displays time as a decimal number (float), and another that displays time as a whole number (integer).

TODO DESCRIPTION

MiniGameManagerMessageUI

File: MiniGameManagerMessageUI.cs

TODO DESCRIPTION

Enum: MiniGameManagerState

MiniGameManagerState.cs

TODO DESCRIPTION

New Script Namespace

namespaces for code

Determining Win/Lose For Players

TODO

Clone this wiki locally