コード例 #1
0
 public void KillMoment()
 {
     player = GetComponentInParent <DroppingSpikeBehavior>().player;
     transform.parent.gameObject.layer = 8;
     shadow.SetActive(false);
     if (CinemachineShake.Instance != null)
     {
         CinemachineShake.Instance.ShakeCamera(5.0f, 0.4f);
     }
     if (player == null)
     {
         return;
     }
     player.Activate();
 }