コード例 #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);
     }
 }
コード例 #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;
 }
コード例 #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
 }
コード例 #4
0
    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;
    }
コード例 #5
0
 public void btnBack()
 {
     _SoundControler.PlayClickSound(true);
     gameObject.SetActive(false);
 }