Skip to content

4. Mini Game Scripts

Raphaël Tétreault edited this page Oct 15, 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 has 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).

Mini Game Manager

File: Assets/Scripts/MiniGameBehaviour.cs

Mini Game Behaviour

File: Assets/Scripts/MiniGameManager.cs

TODO DESCRIPTION

Creating New Mini Game Scripts

New Script Namespace

namespaces for code

Starting and Stopping Mini Game Loop

Mini Game Kicker

Assets/Scripts/MiniGameManagerKicker.cs

TODO DESCRIPTION

Determining Win/Lose For Players

TODO

Clone this wiki locally