PageRenderTime 126ms CodeModel.GetById 121ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/Scripts/Acid Feet.js

http://acid-and-base.googlecode.com/
JavaScript | 15 lines | 14 code | 1 blank | 0 comment | 3 complexity | 8ea0169abfb9c18a2d9754090b15b6ab MD5 | raw file
 1var feetSteam : GameObject;
 2
 3function Update ()
 4{
 5	var properties : Properties;
 6	properties = gameObject.GetComponent("Properties");	
 7	if (properties.ph <= 1 && properties.abType == AcidOrBase.Acid)
 8	{
 9		feetSteam.GetComponent("EllipsoidParticleEmitter").emit = true;
10	}
11	else
12	{
13		feetSteam.GetComponent("EllipsoidParticleEmitter").emit = false;	
14	}
15}