public void Deactivate() { if (_active) { gameObject.SetActive(false); MapEventManager.ChunkRendererDeactivated(this); _active = false; } }
public void Activate(bool force = false) { if (!_active || force) { gameObject.SetActive(true); MapEventManager.ChunkRendererActivated(this); _active = true; } }