// Start is called before the first frame update
 void Start()
 {
     locationTextMeshAddress = gameObject.GetComponent <TextMeshProUGUI>();
     player       = GameObject.Find("Player");
     lastPosition = player.transform.position;
     map          = GameObject.Find("Map").GetComponent <AbstractMap>();
     BingMapsClassesLocatorScript = player.GetComponent <BingMapsClassesLocator>();
     StartCoroutine(CoroutineAddress());
 }
Example #2
0
    // Start is called before the first frame update
    void Start()
    {
        buttonText = gameObject.GetComponentInChildren <Text>().text;

        buttonSelector    = GetComponentInParent <ButtonSelector>();
        playerlocation    = GameObject.Find("Player").GetComponent <PlayerLocation>();
        ttsHandler        = GameObject.Find("TextToSpeechHandler").GetComponent <TextToSpeechHandler>();
        uiManager         = GameObject.Find("UIManager").GetComponent <UIManager>();
        locator           = GameObject.Find("Player").GetComponent <BingMapsClassesLocator>();
        bingSearchHandler = GameObject.Find("BingSearchHandler").GetComponent <BingSearchHandler>();
    }