private void level4setup() { nsssimplehazard.SetActive(true); nsssimplehazard.transform.position = new Vector3(0, 6, nsssimplehazard.transform.position.z); NSSimpleHazardScript script = nsssimplehazard.GetComponent <NSSimpleHazardScript>(); script.superfallprob = 7; }
public void randlevel2() { simplehazard.SetActive(true); simplehazard1.SetActive(true); nsssimplehazard.SetActive(true); simplehazard.transform.position = new Vector3(-7, 7, simplehazard.transform.position.z); simplehazard1.transform.position = new Vector3(7, 7, simplehazard1.transform.position.z); nsssimplehazard.transform.position = new Vector3(0, 7, nsssimplehazard.transform.position.z); NSSimpleHazardScript script = nsssimplehazard.GetComponent <NSSimpleHazardScript>(); script.superfallprob = 4; }
private void level6setup() { nsssimplehazard.SetActive(true); auxillaryobject = Instantiate(nsssimplehazard, nsssimplehazard.transform.position, Quaternion.identity); auxillaryobject.transform.position = new Vector3(0, 8, nsssimplehazard.transform.position.z); nsssimplehazard.transform.position = new Vector3(0, 6, nsssimplehazard.transform.position.z); NSSimpleHazardScript script1 = nsssimplehazard.GetComponent <NSSimpleHazardScript>(); NSSimpleHazardScript script2 = auxillaryobject.GetComponent <NSSimpleHazardScript>(); script1.superfallprob = 3; script2.superfallprob = 3; }
public void randlevel3() { simplehazard.SetActive(true); nsssimplehazard.SetActive(true); followhazard.SetActive(true); simplehazard.transform.position = new Vector3(-7, 7, simplehazard.transform.position.z); nsssimplehazard.transform.position = new Vector3(6, 8, nsssimplehazard.transform.position.z); followhazard.transform.position = new Vector3(-2, 5.5f, followhazard.transform.position.z); NSSimpleHazardScript nsscript = nsssimplehazard.GetComponent <NSSimpleHazardScript>(); nsscript.superfallprob = 2; FollowHazardScript fscript = followhazard.GetComponent <FollowHazardScript>(); fscript.cansuperfall = false; }