// Use this for initialization
 void Start()
 {
     sceneTitle = transform.GetChild(0).GetChild(0).gameObject.GetComponent<Text>();
     yawWithCam = GetComponent<YawWithCamera>();
     selector = FindObjectOfType<SkyboxSelect>();
     selector.onSceneSwitchCallbacks.Add(newScene);
     newScene();
 }
    // Use this for initialization
    void Start()
    {
        selector = GetObjects.getSkyboxSelctor();
        mediaPlayer = gameObject.GetComponent<MediaPlayerCtrl>();

        if (mediaPlayer != null)
        {
            mediaPlayer.OnEnd = onVidEnd;
        }
    }
 // Use this for initialization
 void Start()
 {
     select = GetObjects.getSkyboxSelctor();
     thisRenderer = GetComponent<Renderer>();
 }
    ////////////////////////////////////////////////////////////
    ////////////////   INITIALIZE VARIABLES   //////////////////
    ////////////////////////////////////////////////////////////
    private bool initializeVariables()
    {
        if (scenesAndXMLs == null)
        {
            scenesAndXMLs = new Dictionary<GameObject, XmlNode>();
        }

        if (selector == null)
        {
            selector = FindObjectOfType<SkyboxSelect>();

            if (selector == null)
            {
                Debug.LogError("Skybox select could not be found in the scene");
                return false;
            }
        }

        if (inGameSceneTitles == null)
        {
            // Initialize and populate the scene dictionary
            inGameSceneTitles = new Dictionary<string, GameObject>();

            for (int childIndex = 0; childIndex < selector.gameObject.transform.childCount; childIndex++)
            {
                GameObject childObject = selector.gameObject.transform.GetChild(childIndex).gameObject;
                inGameSceneTitles.Add(childObject.name, childObject);
            }
        }

        return initializeXmlTourScenes();
    }
    void Start()
    {
        initialPosition = transform.position;
        selector = FindObjectOfType(typeof(SkyboxSelect)) as SkyboxSelect;
        selector.onSceneSwitchCallbacks.Add(disableChildren);
        source = GetComponent<AudioSource>();

        raycaster = GetObjects.getRaycastToSelectButtons();

        // Initialize menu buttons list
        menuButtons = new List<ASceneChangeButton>();
        for (int childIndex = 0; childIndex < transform.childCount; childIndex++)
        {
            menuButtons.Add(transform.GetChild(childIndex).gameObject.GetComponent<ASceneChangeButton>());
        }
    }
 // Use this for initialization
 void Start()
 {
     selector = FindObjectOfType<SkyboxSelect>();
     fade = FindObjectOfType<TastefulFadeToBlack>();
 }
    void Awake()
    {
        initialized = true;
        initialPosition = transform.localPosition;
        source = GetComponent<AudioSource>();
        skyboxSelector = FindObjectOfType<SkyboxSelect>() as SkyboxSelect;
        isLoading = false;

        onAwake();
    }