View on GitHub

GameBoosterDocs

Welcome to Game Booster Docs

Game Booster is a set of scripts to help you create your game in Unity. It has a lot of daily common logic to accelerate your development. There is components to deal with movement, instantiation, destruction, input, score, and lot more.

The main principle of Game Booster is reusability. To achieve this, each component do simple things, and can be connected with others components, including your own scripts, to achieve more complex behaviours. Many scripts has UnityEvent fields, which allows you to connect some event with other object in your scene.

Game Booster is made mainly to programmers, to reduce the amount of repetitive code created. So, it’s a good practice to create scripts that controls, or are controled by, other Game Booster’s components.

The components are splitted in several categories: Basics, Movement, Physics, Collision Detection, Input, Time, Vars, Score, Mechanics and Audio.

Developer contact: raphaelmarquesapps@gmail.com

Component list:

Basics components

Basics components deal with fundamental logic in Game Booster

BehaviourEvents

Image

Creates events for each MonoBehaviour events like Awake, Start, Update, OnEnable, etc. This component helps you to put simple logic in some MonoBehaviour event without creating a new script to it.

Fields:

Creator

Image

Creates instance of prefabs. Randomically choose one prefab from the list to be instantiated at some spawn point.

Fields:

Methods:

Destroyer

Image

This component has a few ways to destroy the object it is attached to.

Fields:

Methods:

ObjectSelector

Image

Selects one object of a list, activating it, and deactivating the others of the list. Can be used to switch between weapons, costumes, screens, etc.

Fields:

Methods:

SceneMethods

Image

Gives access to static methods relative to the scene. This component don’t add features, just gives access point to static methods and properties to be called via events by other components.

Methods:

TransformMethods

Image

Methods and properties to set only one axis of position/scale/rotation and copy position/scale/rotation from other transform.

Properties:

Methods:

Input components

Components to get player’s input.

AxisInput

Image

Gets axis input value.

Fields:

KeyInput

Image

Gets key input events.

Fields:

EventType enum values:

MousePositionInput

Image

Gets mouse position.

Fields:

PositionType enum values:

Movement components

Components to control object’s movement.

AngularVelocity2D

Image

Controls the Rigidbody2D/Transform angular velocity.

Fields:

Methods:

ControlType enum values:

AngularVelocity3D

Image

Controls the Rigidbody3D/Transform angular velocity.

Fields:

Methods:

ControlType enum values:

FollowScreenPosition2D

Image

Follows a position relative to screen.

Fields:

Methods:

ControlType enum values:

FollowTarget2D

Image

Follows a target position.

Fields:

Axis enum values:

FollowTarget3D

Image

Follow a target position.

Fields:

Axis enum values :

LookToTarget2D

Image

Makes the object look (rotate) to some target.

Fields:

Velocity2D

Image

Controls Rigidbody2D/Transform velocity.

Fields:

Methods:

ControlType enum values:

Axis enum values:

Velocity3D

Image

Controls Rigidbody3D/Transform velocity.

Fields:

Methods:

ControlType enum values:

Axis enum values :

Physics components

Components to control some physics properties.

Rigidbody2DMethods

Image

Extra methods to control Rigidbody2D.

Fields:

Methods:

RigidbodyMethods

Image

Extra methods to control Rigidbody.

Fields:

Methods:

SpeedLimit2D

Image

Limits the rididbody speed below a value.

Fields:

SpeedLimit3D

Image

Limits the rididbody speed below a value.

Fields:

Collision Detection components

CollisionDetector2D

Image

Detects 2D collisions.

Fields:

CollisionEvent enum values:

CollisionType enum values:

CollisionDetector3D

Image

Detects 3D collisions.

Fields:

CollisionEvent enum values:

CollisionType enum values:

Time components

Components to deal with actions over time.

TimedActions

Image

Executes actions repeatedly over time.

Fields:

TimedActionSequence

Image

Executes a sequence of actions with time between them.

Fields:

Methods:

ControlType enum values:

Timer

Image

A timer (clock).

Fields:

Methods:

Vars components

Components to store variables inside components.

IntVar

Image

Stores a global int variable.

Fields:

Methods:

FilterType enum values:

IntVarRef

Image

Reference to a IntVar component.

Fields:

Methods:

GlobalVariablePlace enum values:

GlobalVarComparisonType enum values:

FloatVar

Image

Stores a global float variable.

Fields:

Methods:

FilterType enum values:

FloatVarRef

Image

Reference to a FloatVar component.

Fields:

Methods:

GlobalVariablePlace enum values:

GlobalVarComparisonType enum values:

BoolVar

Image

Stores a global bool variable.

Fields:

Methods:

BoolVarRef

Image

Reference to a BoolVar component.

Fields:

Methods:

GlobalVariablePlace enum values:

GlobalVarComparisonType enum values:

Score components

Components to score and change player’s score and record.

Score

Image

Stores player score and record.

Fields:

Methods:

ScoreMaker

Image

Adds score to Score component.

Fields:

Methods:

Mechanics components

Some simple mechanics.

MoveFourDirections2D

Image

Controls an 2D object in all directions.

Fields:

Platform2D

Image

Simple Platform character physics control.

Fields:

Methods:

Tank2D

Image

Simple Tank physics control (walk forward and rotate).

Fields:

Audio components

Some components do control audio in the scene.

AudioManager

Image

Manager for many AudioSources. Each AudioSource must be attached to a different ´GameObject´ with the right name set.

Fields:

Methods:

AudioManagerControl

Image

Commands the AudioManager component. This component is useful to control the AudioManager from inside a prefab.

Methods: