Skip to content

Commit

Permalink
Fix that TIP messages are displayed overlaid.
Browse files Browse the repository at this point in the history
If a TIP message is displayed continuously on the screen, the string will be read.
So, when the TIP message is output, it is modified to delete the existing TIP message.

+ File renaming has been disabled. (In Game Inventory)
  • Loading branch information
banksemi committed Dec 9, 2018
1 parent 811b7b1 commit 6986f1c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Unity Client/Gachon Vilage/Assets/Scenes/Game.unity
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,7 @@ MonoBehaviour:
anchorOffset: 0
softBorderPadding: 1
renderQueue: 0
startingRenderQueue: 3010
startingRenderQueue: 3012
mClipTexture: {fileID: 0}
mAlpha: 1
mClipping: 0
Expand Down Expand Up @@ -16845,7 +16845,7 @@ MonoBehaviour:
anchorOffset: 0
softBorderPadding: 1
renderQueue: 0
startingRenderQueue: 3010
startingRenderQueue: 3012
mClipTexture: {fileID: 0}
mAlpha: 1
mClipping: 0
Expand Down Expand Up @@ -18142,7 +18142,7 @@ MonoBehaviour:
anchorOffset: 0
softBorderPadding: 1
renderQueue: 0
startingRenderQueue: 3010
startingRenderQueue: 3012
mClipTexture: {fileID: 0}
mAlpha: 1
mClipping: 0
Expand Down Expand Up @@ -25195,7 +25195,9 @@ MonoBehaviour:
onClick:
- mTarget: {fileID: 2001745592}
mMethodName: Save
mParameters: []
mParameters:
- obj: {fileID: 0}
field:
oneShot: 0
--- !u!65 &1223809928
BoxCollider:
Expand Down Expand Up @@ -30971,7 +30973,7 @@ MonoBehaviour:
relative: 1
absolute: -44
updateAnchors: 1
mColor: {r: 1, g: 1, b: 1, a: 1}
mColor: {r: 0.33962262, g: 0.33962262, b: 0.33962262, a: 1}
mPivot: 4
mWidth: 170
mHeight: 22
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class NetworkMain : MonoBehaviour {
public GameObject NewGameObject;
public static int myNo;
public static float MoveDeley = 0.1f;
private GameObject TipMessage_Last = null;
public static void SendMessage(JObject json)
{
server.Send(json);
Expand Down Expand Up @@ -46,7 +47,10 @@ private void Server_FileInfoReceive(ESocket socket, JObject Message, NetworkFile

private void TipMessage(string Message)
{
// 유니티는 연결된 객체가 삭제되면 자동으로 그 변수는 NULL로 지정됨.
if (TipMessage_Last != null) Destroy(TipMessage_Last);
GameObject gameObject = Instantiate(TipMessageObject);
TipMessage_Last = gameObject;
gameObject.transform.parent = GameObject.Find("TIPList").transform;
gameObject.transform.localScale = new Vector3(1, 1, 1);
UILabel label = gameObject.transform.GetChild(0).GetComponent<UILabel>();
Expand Down

0 comments on commit 6986f1c

Please sign in to comment.