private void OnTriggerEnter(Collider other) { BaseTrigger trigger = other.GetComponent <BaseTrigger>(); if (trigger != null) { trigger.OnTriggered(); } }
private void OnPlayerTriggerEntered(BaseTrigger trigger) { trigger.OnTriggered(); }