예제 #1
0
	void level6Initial(){
		DestroyTemp();	
		
		objPlayer.transform.position = new Vector3(-966,0,-298);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,0,false,0,false,0,0,25,-966,0,-280,0,90,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,1,false,0,false,0,0,25,-962,0,-280,0,90,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,2,false,0,false,0,0,25,-958,0,-280,0,90,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,3,false,0,false,0,0,25,-954,0,-280,0,90,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,4,false,0,false,0,0,25,-950,0,-280,0,90,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,5,false,0,false,0,0,25,-946,0,-280,0,90,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,6,false,0,false,0,0,25,-942,0,-280,0,90,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,7,false,0,false,0,0,25,-938,0,-280,0,90,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,8,false,0,false,0,0,25,-936,0,-282,0,180,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,9,false,0,false,0,0,25,-936,0,-286,0,180,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,10,false,0,false,0,0,25,-936,0,-290,0,180,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,11,false,0,false,0,0,25,-936,0,-294,0,180,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,12,false,0,false,0,0,25,-936,0,-298,0,180,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,13,false,0,false,0,0,25,-938,0,-300,0,270,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,14,false,0,false,0,0,25,-942,0,-300,0,270,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,15,false,0,false,0,0,25,-946,0,-300,0,270,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,16,false,0,false,0,0,25,-950,0,-300,0,270,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,17,false,0,false,0,0,25,-954,0,-300,0,270,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,18,false,0,false,0,0,25,-958,0,-300,0,270,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,19,false,0,false,0,0,25,-962,0,-300,0,270,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,20,false,0,false,0,0,25,-966,0,-300,0,270,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,21,false,0,false,0,0,25,-968,0,-298,0,0,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,22,false,0,false,0,0,25,-968,0,-294,0,0,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,23,false,0,false,0,0,25,-968,0,-290,0,0,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,24,false,0,false,0,0,25,-968,0,-286,0,0,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(false,25,false,0,false,0,0,25,-968,0,-282,0,0,0);
		
	}
예제 #2
0
	void level1Initial(){
		DestroyTemp();
		
		objPlayer.transform.position = new Vector3(-960,0,-970);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(true,0,true,0,true,0,0,1f,-966.2775f,0,-957.5f,0,0,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(true,0,true,0,true,0,0,1f,-953.6655f,0,-955f,0,180,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(true,0,true,0,true,0,0,1f,-966.2775f,0,-952.5f,0,0,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(true,0,true,0,true,0,0,1f,-953.6655f,0,-950f,0,180,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(true,0,true,3,true,5,5,0,-966.2775f,0,-945f,0,0,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(true,0,true,3,false,5,5,0,-953.6655f,0,-935f,0,180,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(true,0,true,0,false,0,0,0,-974.5f,0,-921.5f,0,315,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(true,0,true,0,false,0,0,0,-945.0286f,0,-921.5f,0,225,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(true,0,true,0,false,0,0,0,-974.5f,0,-906.1869f,0,45,0);
		
		newLaser = (GameObject)Instantiate(ptrScriptVariable.Laser);
		newLaser.tag = "temp";
		newLaserScript = (LaserScript) newLaser.GetComponent( typeof(LaserScript) );
		newLaserScript.setProperty(true,0,true,0,false,0,0,0,-945.0286f,0,-906.1869f,0,135,0);
		
		newTrashCan = (GameObject)Instantiate(ptrScriptVariable.TrashCan,new Vector3(-962.6769f,0,-926.5178f),Quaternion.identity);
		newTrashCan.tag = "temp";
		newTrashCan = (GameObject)Instantiate(ptrScriptVariable.TrashCan,new Vector3(-957.4157f,0,-926.5178f),Quaternion.identity);
		newTrashCan.tag = "temp";
	}