Adventure Creator  1.68.2
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2018
AC.ParticleSwitch Class Reference
Inheritance diagram for AC.ParticleSwitch:

Public Member Functions

void TurnOn ()
 
void TurnOff ()
 
void Interact ()
 

Public Attributes

bool enableOnStart = false
 

Detailed Description

This script provides functions to enable and disable the ParticleSystem component on the GameObject it is attached to. These functions can be called either through script, or with the "Object: Send message" Action.

Member Function Documentation

◆ Interact()

void AC.ParticleSwitch.Interact ( )

Causes the ParticleSystem component on the GameObject to emit its maximum number of particles in one go.

◆ TurnOff()

void AC.ParticleSwitch.TurnOff ( )

Disables the ParticleSystem component on the GameObject this script is attached to.

◆ TurnOn()

void AC.ParticleSwitch.TurnOn ( )

Enables the ParticleSystem component on the GameObject this script is attached to.

Member Data Documentation

◆ enableOnStart

bool AC.ParticleSwitch.enableOnStart = false

If True, then the Light component will be enabled when the game begins.