C# Class SpecialEffectsHelper, CatapultKing

Creating instance of particles from code with no effort
Inheritance: MonoBehaviour
Show file Open project: VirsixInc/CatapultKing Class Usage Examples

Public Properties

Property Type Description
Instance SpecialEffectsHelper,
fireEffect ParticleSystem
smokeEffect ParticleSystem

Public Methods

Method Description
Explosion ( Vector3 position ) : void

Create an explosion at the given location

Private Methods

Method Description
Awake ( ) : void
instantiate ( ParticleSystem prefab, Vector3 position ) : ParticleSystem

Instantiate a Particle system from prefab

Method Details

Explosion() public method

Create an explosion at the given location
public Explosion ( Vector3 position ) : void
position Vector3
return void

Property Details

Instance public static property

Singleton
public static SpecialEffectsHelper, Instance
return SpecialEffectsHelper,

fireEffect public property

public ParticleSystem fireEffect
return ParticleSystem

smokeEffect public property

public ParticleSystem smokeEffect
return ParticleSystem