コード例 #1
0
 private void OnCollisionEnter2D(Collision2D other)
 {
     if (other.gameObject.CompareTag("Car"))
     {
         Stop();
         ChangeSpeed(0);
         GameVariables._pauseGame = true;
         AudioManager._audioManager.Play("Crash");
         status.SetDelay();
         ParticleSystem par = Instantiate(particleAngry, transform.position, Quaternion.identity);
         par.transform.parent = transform;
         HappyParameter.parameterManager.ParameterAccident();
     }
 }