Пример #1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetMouseButtonDown(0))
     {
         if (!_pressed && (Time.time - _timeSinceStart) > WaitTime)
         {
             levelSwitcher.SwitchLevel("Menu");
             _pressed = true;
         }
     }
     _textTransform.anchoredPosition = new Vector2(_textTransform.anchoredPosition.x, _textTransform.anchoredPosition.y + Time.deltaTime * TextSpeed);
 }
Пример #2
0
 private void LoadLevel(string level)
 {
     levelSwitcher.SwitchLevel(level);
 }