Commit 51b5277d authored by 16이진형's avatar 16이진형

할일 목록

parent e2941b94
......@@ -405,6 +405,7 @@ MonoBehaviour:
DoubleClickMove: 1
PathRanderMove: 1
WASDMove: 1
Todo: "1. \uC774\uB3D9\uD558\uAE30"
--- !u!1 &332710466
GameObject:
m_ObjectHideFlags: 0
......@@ -746,6 +747,7 @@ MonoBehaviour:
levelManager: {fileID: 279236944}
player: {fileID: 739347346}
pathRenderer: {fileID: 948598108}
todoText: {fileID: 1387602088}
playerSquare: {fileID: 934514725}
cameraMovement: {fileID: 1661408491}
scrollSpeed: 5
......@@ -2152,10 +2154,10 @@ RectTransform:
m_Father: {fileID: 1193230061}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -374.6, y: 176.4}
m_SizeDelta: {x: 26.5, y: 17.4}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 25.400024, y: -48.600006}
m_SizeDelta: {x: 26.5, y: 17.399994}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &959584786
MonoBehaviour:
......@@ -3364,6 +3366,7 @@ RectTransform:
- {fileID: 1086622586}
- {fileID: 527034808}
- {fileID: 798238900}
- {fileID: 1387602087}
m_Father: {fileID: 0}
m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
......@@ -3466,10 +3469,10 @@ RectTransform:
m_Father: {fileID: 1193230061}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -348.1, y: 176.39998}
m_SizeDelta: {x: 26.5, y: 17.4}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 51.899994, y: -48.60002}
m_SizeDelta: {x: 26.5, y: 17.399994}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1207526025
MonoBehaviour:
......@@ -3775,6 +3778,85 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1335777780}
m_CullTransparentMesh: 0
--- !u!1 &1387602086
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1387602087}
- component: {fileID: 1387602089}
- component: {fileID: 1387602088}
m_Layer: 5
m_Name: ToDo
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1387602087
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1387602086}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 1193230061}
m_RootOrder: 11
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 92.3, y: -217}
m_SizeDelta: {x: 160, y: 300}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1387602088
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1387602086}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 14
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 10
m_MaxSize: 40
m_Alignment: 0
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\uD560\uC77C\n"
--- !u!222 &1387602089
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1387602086}
m_CullTransparentMesh: 0
--- !u!1 &1477382725
GameObject:
m_ObjectHideFlags: 0
......@@ -4079,9 +4161,9 @@ RectTransform:
m_Father: {fileID: 1193230061}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -307.85, y: 184.8}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 92.149994, y: -40.199997}
m_SizeDelta: {x: 160, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1678224218
......@@ -4280,9 +4362,9 @@ RectTransform:
m_Father: {fileID: 1193230061}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -307.85, y: 203.2}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 92.149994, y: -21.800003}
m_SizeDelta: {x: 160, y: 30}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1710021924
......
......@@ -19,6 +19,8 @@ public class LevelManager : MonoBehaviour
[SerializeField]
protected bool WASDMove = true;
[SerializeField]
protected string Todo;
// Start is called before the first frame update
protected virtual void Start()
......@@ -29,6 +31,8 @@ public class LevelManager : MonoBehaviour
uiManager.WASDMove = WASDMove;
uiManager.PathCreateAble = PathRanderMove;
uiManager.DoubleCLickMove = DoubleClickMove;
uiManager.TodoText = Todo;
}
// Update is called once per frame
......
......@@ -31,6 +31,8 @@ public class UIManager : MonoBehaviour
public PlayerMovement player;
public PathRenderer pathRenderer;
public Text todoText;
public Square playerSquare;
public CameraMovement cameraMovement;
......@@ -322,6 +324,14 @@ public class UIManager : MonoBehaviour
}
}
public string TodoText
{
set
{
todoText.text = "할일:\n" + value;
}
}
public void PopupLastPathUI(int pathNum, RaycastHit hit)
{
prevSelectPathNum = pathNum;
......
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