void Update() { if (GameManager.instance.gameState == GameManager.GameState.InGame) { if (stats.CurHp <= 0) { if (BackEndMatchManager.instance.IsMySessionId(index)) { cameraFuncs.SetShakeTime(0, 0, Vector3.zero); } Time.timeScale = 1; WorldPackage.instance.playerDie(index); characterCamera.GetComponent <Animator>().SetBool("isGameOver", true); } if (isMe) { if (!isStun) { if (!isDelay) { PlayerControl(); } } } else if (isAI && !GetComponent <AIScript>().isStart) { StartCoroutine(GetComponent <AIScript>().OnFSM()); } } }
} //공격 딜레이 함수 public void HitStop(float _Time, float _Scale) { cameraFuncs.SetShakeTime(_Time, _Scale, Vector3.zero); StartCoroutine(CR_TimeStop(_Time * 0.2f)); }