예제 #1
0
파일: Player.cs 프로젝트: Ret44/SGJ16
 public void Die()
 {
     if (!dead)
     {
         _dead = true;
         _stateInfos[(int)state].stateGO.transform.DOScaleX(0.4f, 0.1f);
         _stateInfos[(int)state].stateGO.transform.DOScaleZ(0.01f, 0.1f);
         _stateInfos[(int)state].stateGO.transform.DOLocalRotate(new Vector3(-90f, 0f, 0f), 0.1f);
         _stateInfos[(int)state].stateGO.transform.DOLocalMoveY(-0.25f, 0.1f);
         ParticleController.SpawnBlood(this.transform.position);
     }
 }