C# Class SpecialEffectsHelper, CatapultKing

Creating instance of particles from code with no effort
Inheritance: MonoBehaviour
Exibir arquivo 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_oe static_oe property

Singleton
public static SpecialEffectsHelper, Instance
return SpecialEffectsHelper,

fireEffect public_oe property

public ParticleSystem fireEffect
return ParticleSystem

smokeEffect public_oe property

public ParticleSystem smokeEffect
return ParticleSystem