Gládio Cítrico

Unity Scripts

Demos, scripts and utilities for unity.

Source code and other scripts in Github.

Systems

novelist

A very simple precedual visual novel engine.
Download here

Usage

Read the documentation here.

(Very basic) Scripts

Destroyer

Destroy a GameObject after a time defined.
Download here

Usage

Attach to you GameObject.

Properties:
time (float): Time for GameObject to be destroyed.


FollowObject

Make a GameObject follow another.
Download here

Usage

Attach to you GameObject.

Properties:
objectForFollow (Transform): GameObject to be followed.
velocity (float): GameObject (attached with the script) speed. Default: 1


GameLight

Control the light of a GameObject.
Download here

Usage

Attach to you GameObject.

Properties:
velocity (float): Velocity to flash. Default: 2
time (float): Time to flash. Default: 0
isFlashing (bool): Flag to tell if the light is flashing (like a broken one).
isDisabled (bool): Flag to tell if the light is disabled.
objLight (Light): Light source.


BasicTopDownMovimentationPC

Basic top-down movimentation with keyboard.
Download here

Usage

Attach to you GameObject.

Properties:
rbody (Rigidbody2D): GameObject to be moved.
speed (float): Movimentation speed. Default: 3


BasicTopDownMovimentationMobile

Basic top-down movimentation with touch.
Download here

Usage

Attach to you GameObject.

Properties:
rbody (Rigidbody2D): GameObject to be moved.
speed (float): Movimentation speed. Default: 3
x (float): Position in X of the button.
y (float): Position in Y of the button.
width (float): Width of the button.
height (float): Height of the button.


blog comments powered by Disqus