GENERAL

<aside> ℹ️ Pet Scripts covers scripts used primarily in the Pet Scene or the Inventory scene. They can all be found in the Project Directory, under Assets —> Pet —> Scripts.

The scripts are AUTOLOAD, AUTOSAVE, CHANGESPRITE, CHECKFIRSTTIME, NEEDSCONTROLLER, PETCONTROLLER, PETDATA, PETUICONTROLLER, SAVESYSTEM, and TIMINGMANAGER.

NOTE: While RESET is in the Pet Scripts folder in Unity, it concerns the Chain Matching game and is in the MATCHER SCRIPTS document. SETINFO is also in this folder, however more information can be found in the MEDICATION SELECTION document.

NOTE 2: Some of the variables within these scripts are named incorrectly following the update of our food items. Keep in mind that anything related to “flour” is now related to our cake item, and anything related to “corn” is related to our water item.

</aside>

petscripts_01.png

(DOUBLE CLICK IMAGE TO ENLARGE)

DATA/LOADING SCRIPTS

<aside> 📂 These scripts are connected to loading, setting and saving variables as they move across the Matcher, Result, Pet, and Inventory scene.

</aside>

SAVE SYSTEM

AUTO LOAD

AUTO SAVE

PET DATA

CHECK FIRST TIME

PET SCRIPTS

<aside> 🐕 These scripts directly connect with either the pet’s sprites or pet’s state variables.

</aside>

NEEDS CONTROLLER

PET UI CONTROLLER

CHANGE SPRITE

PET CONTROLLER (NOT USED)

TIMING MANAGER (NOT USED)

INVENTORY SCRIPTS

<aside> 🧺 These scripts directly connect with the Inventory scene. This includes tracking what items are used in the Inventory scene and how they affect the pet’s states.

</aside>