예제 #1
0
 private void OnDestroy()
 {
     if (!isApplicationQuitting && tutorialController != null)
     {
         tutorialController.ChangeTutorialBub(newBubText, tutorialPane);
     }
 }
예제 #2
0
    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;
        }
    }
예제 #3
0
 private void OnDeath()
 {
     tutorialController.ChangeTutorialBub(newText, secondaryBubSet);
     if (shouldSubscribeToMomentumAssignment)
     {
         tutorialController.SubscribeToMomentumAssignment();
     }
 }
예제 #4
0
 void OnHealthChanged()
 {
     if (tutorialController.InRenewableRoom)
     {
         tutorialController.ChangeTutorialBub(newBubText, secondaryBubPane);
         trapdoor.StartElevator();
         entityToMakeVulnerable.IsInvulnerable = false;
     }
 }