示例#1
0
 private void Update()
 {
     if (Input.GetKeyDown("k") && TutorialManager.Instance.testMode)
     {
         // checks if the monitor is being used. If it isn't add new missions to the system.
         if (!_hoverMonitor.GetPlaying())
         {
             Debug.Log("K pressed and !over " + _hoverMonitor.GetPlaying());
             FindAndAddMission();
         }
     }
 }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     if (_hoverObject.GetPlaying())
     {
         if (!_once && !CameraMover.Instance.isMoving)
         {
             _originalRotation = gameObject.transform.localRotation;
             FlipButtons();
             _once = true;
         }
     }
     else
     {
         if (_once)
         {
             _once         = false;
             _currentIndex = 0;
             FlipButtons();
         }
     }
 }