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