Before the challenge slide, I’d already put Show(true);
into RespawningCoin’s Reset() method, so I was surprised to find that the lecture’s approach was so different. I don’t think that I’m missing anything due to networks, but I thought I’d ask just to be safe. (The challenge slide mentions it only needs to be called for non-server players but there’s no logic added to actually address this.)
The challenge version:
Vector3 _previousPosition;
private void Update()
{
if(transform.position != _previousPosition)
{
Show(true);
}
_previousPosition = transform.position;
}
or
public void Reset()
{
Show(true); // Why not this?
_alreadyCollected = false;
}