// 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) ); }
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(); }
// 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) ); }
// 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) ); }
// Use this for initialization void Start () { objPlayer = (GameObject) GameObject.FindWithTag ("Player"); objAIScriptAI = (AIscript) objPlayer.GetComponent( typeof(AIscript) ); }