Example #1
0
	void Start () {
		m_masterMind = GameObject.Find("MasterMind");

		managerRef = transform.parent.GetComponent<Puzzel_Manager>();
		switchOn.SetActive(false);
		light_on.SetActive(false);
	}
Example #2
0
    void Start()
    {
        m_masterMind = GameObject.Find("MasterMind");

        managerRef = transform.parent.GetComponent <Puzzel_Manager>();
        switchOn.SetActive(false);
        light_on.SetActive(false);
    }
Example #3
0
	void Start () {

		Puzzel_cam = GameObject.Instantiate(
			ZoomCamPrefab, 				// clone of the original
			changePos,				// Position
			Quaternion.FromToRotation(new Vector3(0, 0, 0), new Vector3(0, 0, 1)) 		// Rotation
			) as GameObject;

		//Debug.Log("hejseas ");
		Puzzel_cam.gameObject.SetActive(false);	// Activate if needed
		//Puzzel_cam.position = changePos;
		//Puzzel_cam.GetComponent<AudioListener>().enabled = false;
		//--------------------------------------------------------

		if(Puzzelmanager_Name != ""){
			current_Manager = GameObject.Find(Puzzelmanager_Name).GetComponent<Puzzel_Manager>();
			uses_puzzel = true;
		}

	}
Example #4
0
    void Start()
    {
        Puzzel_cam = GameObject.Instantiate(
            ZoomCamPrefab,                                                        // clone of the original
            changePos,                                                            // Position
            Quaternion.FromToRotation(new Vector3(0, 0, 0), new Vector3(0, 0, 1)) // Rotation
            ) as GameObject;

        //Debug.Log("hejseas ");
        Puzzel_cam.gameObject.SetActive(false);         // Activate if needed
        //Puzzel_cam.position = changePos;
        //Puzzel_cam.GetComponent<AudioListener>().enabled = false;
        //--------------------------------------------------------

        if (Puzzelmanager_Name != "")
        {
            current_Manager = GameObject.Find(Puzzelmanager_Name).GetComponent <Puzzel_Manager>();
            uses_puzzel     = true;
        }
    }