// Use this for initialization void Start() { spawn_tiles_script = tile_spawner_ref.gameObject.GetComponent <spawn_tiles>(); }
// Use this for initialization void Start() { tile_spawner_ref = GameObject.Find("Tile_Spawner"); spawn_tiles_script = tile_spawner_ref.GetComponent <spawn_tiles>(); }