private void OnDestroy() { if (!isApplicationQuitting && tutorialController != null) { tutorialController.ChangeTutorialBub(newBubText, tutorialPane); } }
private void OnTriggerEnter(Collider other) { tutorialController.ChangeTutorialBub(newText, secondaryBubSet); if (objectToActivate != null) { objectToActivate.SetActive(true); } if (doorController != null) { doorController.CloseDoor(); } if (IsEquipActiveRoom) { tutorialController.InEquipActiveRoom = true; } else if (IsEquipPassiveRoom) { tutorialController.InEquipPassiveRoom = true; } else if (IsRenewableRoom && !hasAppliedRenewableRoomDamage) { if (!hasAppliedRenewableRoomDamage) { hasAppliedRenewableRoomDamage = true; GameManager.GetPlayerTransform().GetComponent <MobileEntityHealthComponent>().ReceiveDamageDirectly(50f); } tutorialController.InRenewableRoom = true; } }
private void OnDeath() { tutorialController.ChangeTutorialBub(newText, secondaryBubSet); if (shouldSubscribeToMomentumAssignment) { tutorialController.SubscribeToMomentumAssignment(); } }
void OnHealthChanged() { if (tutorialController.InRenewableRoom) { tutorialController.ChangeTutorialBub(newBubText, secondaryBubPane); trapdoor.StartElevator(); entityToMakeVulnerable.IsInvulnerable = false; } }