예제 #1
0
void SceneTutorial::ChangeTips()
{
	targetPosition = player->GetPosition().z;

	if (targetPosition > (progress)* meter) {
		progress++;
		tipsPosition = tipsInitPosition;
	}
	if (targetPosition < (progress - 1) * meter) {
		progress--;
		tipsPosition = tipsInitPosition;
	}

	drawTexture = "tutorial" + std::to_string(progress);

	time += 1.0f;
	time = Math::Clamp(time, 0.0f, max);

	tipsPosition = tipsInitPosition.Lerp(tipsDrawPosition, time / max);
}