Commit 31e9a1e9 authored by 15박보승's avatar 15박보승

Ring의 scale이 음수가 되지 않도록 수정

parent 151cbb26
......@@ -74,7 +74,7 @@ public class ForwardNoteObject : NoteObject
public override void SetPosition(float remainedTime)
{
base.SetPosition(remainedTime);
ring.localScale = (1 + 4 * remainedTime / maxRemainedTime) * new Vector3(1, 1, 1);
ring.localScale = Mathf.Max((1 + 4 * remainedTime / maxRemainedTime), 0) * new Vector3(1, 1, 1);
// change ring alpha
var img = ring.gameObject.GetComponent<UnityEngine.UI.Image>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment