void MoveUpdate() { if (moving) { transform.position = Vector3.MoveTowards(transform.position, moveTo, speed * Time.fixedDeltaTime); if (transform.position == moveTo) { container.PuzzleEndMove(); moving = false; } } }
void MoveUpdate() { if (moving) { transform.position = Vector3.MoveTowards(transform.position, moveTo, speed * Time.fixedDeltaTime); if (transform.position == moveTo) { container.PuzzleEndMove(); moving = false; } } }