Ejemplo n.º 1
0
 /// <summary>
 /// Closes the current dialog.
 /// </summary>
 private void CloseDialog()
 {
     if (dialog != null)
     {
         dialog.Deactivate();
         dialog = null;
     }
 }
 public void ClearSecondarySideScreen()
 {
     if ((UnityEngine.Object)activeSideScreen2 != (UnityEngine.Object)null)
     {
         activeSideScreen2.Deactivate();
         activeSideScreen2 = null;
     }
     sideScreen2.SetActive(false);
 }
Ejemplo n.º 3
0
 protected override void OnCmpDisable()
 {
     if (quitting)
     {
         for (int num = screenStack.Count - 1; num >= 0; num--)
         {
             KScreen kScreen = screenStack[num];
             kScreen.Deactivate();
         }
     }
 }
Ejemplo n.º 4
0
            private static void ActivateScreen(LoreBearer loreBearer, KScreen screen)
            {
                var demolishable = loreBearer?.GetComponent <Demolishable>();

                if (demolishable != null && isMarkedForDemolition.Get(demolishable))
                {
                    screen.Deactivate();
                    return;
                }
                screen.Activate();
            }
Ejemplo n.º 5
0
 /// <summary>
 /// Closes the current dialog.
 /// </summary>
 private void CloseDialog()
 {
     if (dialog != null)
     {
         dialog.Deactivate();
         // dialog's game object is destroyed by Deactivate()
         dialog = null;
     }
     if (modImage != null)
     {
         UnityEngine.Object.Destroy(modImage);
         modImage = null;
     }
 }