コード例 #1
0
 public void killPlayer()
 {
     KeyImputManager.LockPlayerMouvement();
     animator.SetTrigger("dying");
     resetPlayer();
     Invoke("TeleportPlayer", 1f);
 }
コード例 #2
0
ファイル: Boss.cs プロジェクト: ThomKir99/The-End-Of-Gods-2.0
 private void pushPlayer()
 {
     if (pushThePlayer)
     {
         KeyImputManager.LockPlayerMouvement();
         GameObject.FindGameObjectWithTag("Player").transform.SetPositionAndRotation(new Vector3(GameObject.FindGameObjectWithTag("Player").transform.position.x - .2f, GameObject.FindGameObjectWithTag("Player").transform.position.y + 0.2f, GameObject.FindGameObjectWithTag("Player").transform.position.z),
                                                                                     GameObject.FindGameObjectWithTag("Player").transform.rotation);
         updatePushTimer();
     }
 }
コード例 #3
0
 public void knight1Action()
 {
     if (Player_Info.ableToDash == true)
     {
         playerDash();
         KeyImputManager.LockPlayerMouvement();
         Invoke("unlockPlayerMovement", Player_Info.dashLenght);
         Player_Info.ableToDash = false;
         timeForNextDash        = PlayerDashDelay;
     }
 }
コード例 #4
0
 public void knight2Action()
 {
     if (isShielded)
     {
         isShielded = false;
         increaseOpacity();
     }
     else
     {
         cancelCurrentPlayerAction();
         KeyImputManager.LockPlayerMouvement();
         isShielded = true;
         decreaseOpacity();
     }
 }
コード例 #5
0
 private void ShowDialog()
 {
     marchandDialog.enabled = true;
     DialogIsShowen         = true;
     KeyImputManager.LockPlayerMouvement();
 }
コード例 #6
0
 private void playerHurtAnimation()
 {
     animator.SetTrigger("hurt");
     KeyImputManager.LockPlayerMouvement();
     Invoke("unlockPlayerMovement", 0.1f);
 }