/// <summary>
    /// Gaseste Text Nume si il seteaza cu nimic
    /// </summary>
    void Start()
    {
        informationPanel = GameObject.Find("InformationPanel").GetComponent <RectTransform>();

        nameLabel = GameObject.Find("Name").GetComponent <Text>();

        button = GameObject.Find("PlayPause").GetComponent <Button>();
        script = GameObject.Find("UtilityButtons").GetComponent <UitilityButtons>();

        basicInfo = GameObject.Find("BasicInfo").GetComponent <Text>();

        infoLoader = GameObject.Find("SceneInfoLoader").GetComponent <SceneLoader>();

        mainCamera = transform.GetComponent <FreeCamera>();
    }
Exemple #2
0
 /// <summary>
 /// Rulare inainte de start
 /// </summary>
 void Awake()
 {
     playPause   = GameObject.Find("Buttons/UtilityButtons/PlayPause").GetComponent <Button>();
     utilButtons = GameObject.Find("Buttons/UtilityButtons").GetComponent <UitilityButtons>();
     freeCamera  = GameObject.Find("/Main Camera").GetComponent <FreeCamera>();
 }