// Called on trigger event void OnTriggerEnter(Collider other) { if (!other.tag.Contains("Static Environment")) { Debug.Log("Activating " + weather); _collider.isTrigger = false; transform.Translate(-transform.up * transform.localScale.y * _compressionFactor); // Notify all other switches _switchManager.Notify(weather); } }