public void ActionBenediction(GameObject obj) { if (obj.layer == LayerMask.NameToLayer("LoadingNewLevel")) { transitions.EndAnimations(); } if (obj.layer == LayerMask.NameToLayer("Teleportation")) { transitions.EndAnimations(); } }