Example #1
0
 private void SinhroniseView()
 {
     settings_mask.anchoredPosition = Vector3.up * (settings_mask.sizeDelta.y * settings_scroll.value + settings_pos);
     load_mask.anchoredPosition     = Vector3.up * (load_mask.sizeDelta.y * load_scroll.value + load_pos);
     new_mask.anchoredPosition      = Vector3.up * (new_mask.sizeDelta.y * new_scroll.value + new_pos);
     if (runtime)
     {
         dialogEnterButton.SetActive(ToDialogWithNearest(false));
         if (currentDialogSystem != null && StalkerControl.player && StalkerControl.player.trans && currentDialogSystem.dialogCharacter)
         {
             StalkerBehaviour with = currentDialogSystem.dialogCharacter;
             StalkerControl.player.SafetyLookAt((with.trans.position - StalkerControl.player.trans.position).normalized);
             with.SafetyLookAt((StalkerControl.player.trans.position - with.trans.position).normalized);
         }
     }
     if (memory)
     {
         memory.text = "Используется память : " + MemoryUsed();
     }
     if (menu_state == MenuState.Dialog)
     {
     }
 }