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

플레이 가능할정도로 씬 변경,

코멘트 사라지는거 WIP
parent fc192fef
This diff is collapsed.
...@@ -477,5 +477,25 @@ PrefabInstance: ...@@ -477,5 +477,25 @@ PrefabInstance:
propertyPath: m_Pivot.y propertyPath: m_Pivot.y
value: 0 value: 0
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 6319119020849879011, guid: 8115fd4d1a1025b4fb05e45fc5fa6578,
type: 3}
propertyPath: m_Color.r
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6319119020849879011, guid: 8115fd4d1a1025b4fb05e45fc5fa6578,
type: 3}
propertyPath: m_Color.g
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6319119020849879011, guid: 8115fd4d1a1025b4fb05e45fc5fa6578,
type: 3}
propertyPath: m_Color.b
value: 1
objectReference: {fileID: 0}
- target: {fileID: 6319119020849879011, guid: 8115fd4d1a1025b4fb05e45fc5fa6578,
type: 3}
propertyPath: m_Text
value: 'Stage : 1'
objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 8115fd4d1a1025b4fb05e45fc5fa6578, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 8115fd4d1a1025b4fb05e45fc5fa6578, type: 3}
...@@ -10,12 +10,20 @@ public class CommentUIGenerator : MonoBehaviour ...@@ -10,12 +10,20 @@ public class CommentUIGenerator : MonoBehaviour
public string commentString = ""; public string commentString = "";
public bool isViewed = false; public bool isViewed = false;
private Coroutine currentFadeOut;
public void SetComment(string commentStr) public void SetComment(string commentStr)
{ {
commentString = commentStr; commentString = commentStr;
comment.text = commentString; comment.text = commentString;
commentUI.SetActive(true); commentUI.SetActive(true);
currentFadeOut = StartCoroutine(FadeOut());
}
public void ViewComment()
{
StopCoroutine(currentFadeOut);
isViewed = true;
} }
IEnumerator FadeOut() IEnumerator FadeOut()
...@@ -26,5 +34,7 @@ public class CommentUIGenerator : MonoBehaviour ...@@ -26,5 +34,7 @@ public class CommentUIGenerator : MonoBehaviour
{ {
yield return null; yield return null;
} }
commentUI.SetActive(false);
isViewed = true;
} }
} }
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