public void CallTerrainManager() { if (loader = GameObject.Find(GameSystem.instance.map_name).GetComponent <TerrainLoader>()) { loader.LoadUnLoad(); } }
private void OnTriggerEnter(Collider other) { if (!other.CompareTag("Player")) { return; } loader.LoadUnLoad(); }