Gwsu

Submitted by: Submitted by

Views: 347

Words: 593

Pages: 3

Category: Business and Industry

Date Submitted: 03/22/2012 02:37 AM

Report This Essay

AudioScrpit.js

private var audiostart;

private var audioend;

function OnTriggerEnter() {

audiostart = gameObject.Find("Camera").GetComponent("AudioSource");

audiostart.enabled = true;

}

function OnTriggerExit() {

audioend = gameObject.Find("Camera").GetComponent("AudioSource");

audioend.enabled = false;

}

Boholpampalife.js

var dead = false;

function OnTriggerEnter (myTrigger : Collider) {

if(myTrigger.gameObject.name == "heal"){

dead = true;

Debug.Log("kaboom!");

}

}

function Update()

{

if (dead)

{

Debug.Log("fallout was hit!");

myFunction();

}

}

function myFunction()

{

dead = false;

yield WaitForSeconds(0.1);

HealthControlbohol.LIVES += 3;

Debug.Log("transform");

}

Boholsunlightdamage.js

var dead = false;

function OnTriggerEnter (myTrigger : Collider) {

if(myTrigger.gameObject.name == "Cube"){

dead = true;

Debug.Log("kaboom!");

}

}

function Update()

{

if (dead)

{

Debug.Log("fallout was hit!");

myFunction();

}

}

function myFunction()

{

dead = false;

yield WaitForSeconds(0.1);

HealthControlbohol.LIVES -= 1;

Debug.Log("transform");

}

Boholwarp.js

var rolling : GameObject;

function Start(){

(rolling).gameObject.active = true;

}

function OnTriggerEnter (myTrigger : Collider) {

if(myTrigger.gameObject.name == "pedro_FINAL"){

Application.LoadLevel(24);

Debug.Log("ahay");

}

}

camiguinminigui.js

var guigui : GUITexture;

function OnTriggerEnter () {

guigui.enabled = true;

Debug.Log("ok na");

}

function OnTriggerExit () {

//guigui.enabled = false;

Debug.Log("dre pa ok");

}

Camiguiwarp.js

var rolling : GameObject;

function Start(){

(rolling).gameObject.active = true;

}

function OnTriggerEnter (myTrigger : Collider) {

if(myTrigger.gameObject.name == "pedro_FINAL"){

Application.LoadLevel(23);

Debug.Log("freddie nakatamak tae");

}

}

cinema1script.js

var rolling : GameObject;

function Start(){...

More like this