PageRenderTime 17ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Scripts/DandelionWither.js

http://acid-and-base.googlecode.com/
JavaScript | 18 lines | 17 code | 1 blank | 0 comment | 5 complexity | d0d1f18e621fd4821b07826f2a7035d4 MD5 | raw file
 1var smokeEffect : GameObject;
 2
 3function Update ()
 4{
 5	var properties : ClimbObject;
 6	properties = gameObject.GetComponent("ClimbObject");	
 7	if (properties.inRangeAcid && !(properties.phInRangeAcid))
 8	{
 9		smokeEffect.GetComponent("EllipsoidParticleEmitter").emit = true;
10	}
11	else if (properties.inRangeBase && !(properties.phInRangeBase)){
12		smokeEffect.GetComponent("EllipsoidParticleEmitter").emit = true;
13	}
14	else
15	{
16		smokeEffect.GetComponent("EllipsoidParticleEmitter").emit = false;	
17	}
18}