Add speed scaling and slide groundwork
This commit is contained in:
@@ -8,7 +8,7 @@ public class ScrollingObject : MonoBehaviour {
|
||||
// 게임 오브젝트를 왼쪽으로 일정 속도로 평행 이동하는 처리
|
||||
if(!GameManager.instance.isGameover)
|
||||
{
|
||||
transform.Translate(Vector3.left * speed * Time.deltaTime);
|
||||
transform.Translate(Vector3.left * speed * GameManager.instance.gameSpeed * Time.deltaTime);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user