Commit a602447d authored by 18신대성's avatar 18신대성 Committed by 18손재민

코멘트 표시 구현완료

parent 76617d1c
......@@ -812,7 +812,7 @@ GameObject:
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
m_IsActive: 0
--- !u!224 &1547091490
RectTransform:
m_ObjectHideFlags: 0
......@@ -846,7 +846,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.23584908, g: 0.23584908, b: 0.23584908, a: 0.7764706}
m_Color: {r: 0.23584908, g: 0.23584908, b: 0.23584908, a: 0.78431374}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
......
......@@ -30,8 +30,14 @@ public class CommentUIGenerator : MonoBehaviour
{
yield return new WaitForSeconds(5f);
float currentTime = Time.time;
for (; currentTime + 5000 >= Time.time;)
float backAlpha = 200;
float textAlpha = 255;
for (; currentTime + 4000 >= Time.time;)
{
backAlpha -= 50f * Time.deltaTime;
textAlpha -= (255 / 4) * Time.deltaTime;
commentUI.GetComponent<Image>().color = new Color(0.2358491f, 0.2358491f, 0.2358491f, backAlpha / 255);
comment.color = new Color(1, 1, 1, textAlpha / 255);
yield return null;
}
commentUI.SetActive(false);
......
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