PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/Scripts/CollideAndCorrode.js

http://acid-and-base.googlecode.com/
JavaScript | 10 lines | 10 code | 0 blank | 0 comment | 4 complexity | f8d75a8efd4b21d4a5919d1ba1d34909 MD5 | raw file
 1function OnControllerColliderHit(hit : ControllerColliderHit) {
 2	if(hit.gameObject.name == "CylinderLeft"){
 3		Debug.Log("Hit CylinderLeft!");
 4		Destroy(hit.gameObject);
 5	}
 6	if(hit.gameObject.name == "CylinderRight"){
 7		Debug.Log("Hit CylinderRight!");
 8		Destroy(hit.gameObject);
 9	}
10}