Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        globals = GameObject.Find("GLOBALS").GetComponent <Globals>();

        dreamingStem = transform.GetChild(0).gameObject;
        currentDream = dreamingStem.transform.GetChild(0).GetComponent <SpriteRenderer>();
        dreamingStem.SetActive(false);

        InvokeRepeating("DetermineNextLocation", 5, 5);//Do this every [5] sec
        tileGenerator.CreateTileInRequiredDirections();
    }