Page 407 - MDP2022-3
P. 407
3)연출 코드
nowPos = transform.position;
if (lastPos - nowPos != Vector3.zero)
{
if (!audio.isPlaying)
audio.Play();
}
else if (lastPos - nowPos == Vector3.zero)
{
audio.Stop();
}
lastPos = nowPos;
if(other.name== "stick")
{
Debug.Log("asdasd");
particled = true;
audio.Play();
particles.SetActive(true);
}