Beispiel #1
0
 public void ShowPopupPick()
 {
     _SoundControler.PlayClickSound(true);
     if (!_ListPopup[0].activeSelf && !_GameControler._CheckHit)
     {
         if (_GameControler._TypeGame == 0)
         {
             if (!_GameControler._GameState._IsPlayerStart)
             {
                 return;
             }
         }
         else
         {
             if (!_GameControler._GameState._IsPlayerStart && !_GameControler._GameState._IsEnemyStart)
             {
                 return;
             }
         }
         _ListPopup[0].SetActive(true);
         LoadDataPopupPick();
     }
     else
     {
         _ListPopup[0].SetActive(false);
     }
 }
Beispiel #2
0
 public void btnBack()
 {
     _SoundControler.PlayClickSound(true);
     anim.enabled = true;
     //play the SlideOut animation
     anim.Play("PanelLevelOut");
     //set back the time scale to normal time scale
     // Time.timeScale = 1;
 }
Beispiel #3
0
 //function to pause the game
 public void CallPanelChoosePlayer()
 {
     _SoundControler.PlayClickSound(true);
     //enable the animator component
     anim.enabled = true;
     //play the Slidein animation
     anim.Play("PanelChoosePlayerIn");
     //freeze the timescale
 }
    public void MoveRight_On(BaseEventData eventData)
    {
        if (_GameControler._StopTime)
        {
            return;
        }
        if (_GameControler._GameObj.tag == "Enemy" && _GameControler._TypeGame == 0)
        {
            return;
        }
        _SoundControler.PlayClickSound(true);
        Player player = _GameControler._GameObj.GetComponent <Player>();

        player._MovePlayer = Player.MovePlayer.MoveRigh;
    }
 public void btnBack()
 {
     _SoundControler.PlayClickSound(true);
     gameObject.SetActive(false);
 }