コード例 #1
0
	// Use this for initialization
	void Start () {
		Xmax = transform.position.x+damageXRange/2;
		Xmin = transform.position.x-damageXRange/2;
		Zmax = transform.position.z+damageZRange/2;
		Zmin = transform.position.z-damageZRange/2;
		objPlayer = (GameObject) GameObject.FindWithTag ("Player");
		objAIScriptAI  = (AIscript) objPlayer.GetComponent( typeof(AIscript) );
	}
コード例 #2
0
	void Start () {	
		objPlayer = (GameObject) GameObject.FindWithTag ("Player");
		objCamera = (GameObject) GameObject.FindWithTag ("MainCamera");
		ptrScriptVariable = (VariableScript) objCamera.GetComponent( typeof(VariableScript) );
		objAIScriptAI  = (AIscript) objPlayer.GetComponent( typeof(AIscript) );
		pause = true;
		musicOn();
	}
コード例 #3
0
	// Use this for initialization
	void Start () {
		po = light.transform.position;
		sc = light.transform.localScale;
		objPlayer = (GameObject) GameObject.FindWithTag ("Player");
		objAIScriptAI  = (AIscript) objPlayer.GetComponent( typeof(AIscript) );
		laserscript = (LaserScript) Laser.GetComponent( typeof(LaserScript) );
		objCamera = (GameObject) GameObject.FindWithTag ("MainCamera");
		ptrGameScript = (gameScript)objCamera.GetComponent( typeof(gameScript) );
	}
コード例 #4
0
	// Use this for initialization
	void Start () {
		Xmax = transform.position.x+1;
		Xmin = transform.position.x-1;
		Zmax = transform.position.z+1;
		Zmin = transform.position.z-1;
		objPlayer = (GameObject) GameObject.FindWithTag ("Player");
		objAIScriptAI  = (AIscript) objPlayer.GetComponent( typeof(AIscript) );
		mmScript = (MazeMainScript) father.GetComponent( typeof(MazeMainScript) );
	}
コード例 #5
0
	// Use this for initialization
	void Start () {
		objPlayer = (GameObject) GameObject.FindWithTag ("Player");
		objAIScriptAI  = (AIscript) objPlayer.GetComponent( typeof(AIscript) );
	}