Example #1
0
 public void ReturnToLife()
 {
     if (returnItem > 0)
     {
         PanelAnimation.HideCurrentPanel();
         Time.timeScale = 1.0f;
         health         = 100;
         destroyerForMeteorits++;
         DestroyAllMeteorits();
         returnItem--;
         PlayerStats.Current.ReturnItem = returnItem;
     }
 }
Example #2
0
 public void ShowPanel()
 {
     PanelAnimation.HideCurrentPanel();
     if (!isPlayed)
     {
         panelToControll.SetActive(true);
         currentPanel = panelToControll;
         if (!animationController)
         {
             animationController = panelToControll.GetComponent <Animator>();
         }
         animationController.Play(StringNamesInfo.SHOWPANEL_animation);
         isPlayed = true;
     }
 }