movement fixed
This commit is contained in:
@@ -152,50 +152,75 @@ public class movement : MonoBehaviour {
|
||||
player.transform.position = oneone.transform.position;
|
||||
eromulepes1.SetActive(true);
|
||||
eromulepes1.GetComponent<TMP_Text>().text = moveCounter.ToString();
|
||||
}else if(random == 2) {
|
||||
jelenlegi_x = 1;
|
||||
jelenlegi_y = 1;
|
||||
}
|
||||
else if(random == 2) {
|
||||
player.transform.position = twoone.transform.position;
|
||||
feketepiaclepes1.SetActive(true);
|
||||
feketepiaclepes1.GetComponent<TMP_Text>().text = moveCounter.ToString();
|
||||
jelenlegi_x = 2;
|
||||
jelenlegi_y = 1;
|
||||
} else if (random == 3) {
|
||||
player.transform.position = threeone.transform.position;
|
||||
metrolepes1.SetActive(true);
|
||||
metrolepes1.GetComponent<TMP_Text>().text = moveCounter.ToString();
|
||||
jelenlegi_x = 3;
|
||||
jelenlegi_y = 1;
|
||||
} else if (random == 4) {
|
||||
player.transform.position = onetwo.transform.position;
|
||||
szervereklepes1.SetActive(true);
|
||||
szervereklepes1.GetComponent<TMP_Text>().text = moveCounter.ToString();
|
||||
jelenlegi_x = 1;
|
||||
jelenlegi_y = 2;
|
||||
} else if (random == 5) {
|
||||
player.transform.position = twotwo.transform.position;
|
||||
kingcasinolepes1.SetActive(true);
|
||||
kingcasinolepes1.GetComponent<TMP_Text>().text = moveCounter.ToString();
|
||||
jelenlegi_x = 2;
|
||||
jelenlegi_y = 2;
|
||||
} else if (random == 6) {
|
||||
player.transform.position = threetwo.transform.position;
|
||||
feltoltolepes1.SetActive(true);
|
||||
feltoltolepes1.GetComponent<TMP_Text>().text = moveCounter.ToString();
|
||||
jelenlegi_x = 3;
|
||||
jelenlegi_y = 2;
|
||||
} else if (random == 7) {
|
||||
player.transform.position = onethree.transform.position;
|
||||
kutatolaborlepes1.SetActive(true);
|
||||
kutatolaborlepes1.GetComponent<TMP_Text>().text = moveCounter.ToString();
|
||||
jelenlegi_x = 1;
|
||||
jelenlegi_y = 3;
|
||||
} else if (random == 8) {
|
||||
player.transform.position = twothree.transform.position;
|
||||
kriptoklublepes1.SetActive(true);
|
||||
kriptoklublepes1.GetComponent<TMP_Text>().text = moveCounter.ToString();
|
||||
jelenlegi_x = 2;
|
||||
jelenlegi_y = 3;
|
||||
} else if (random == 9) {
|
||||
player.transform.position = threethree.transform.position;
|
||||
cyberplazalepes1.SetActive(true);
|
||||
cyberplazalepes1.GetComponent<TMP_Text>().text = moveCounter.ToString();
|
||||
jelenlegi_x = 3;
|
||||
jelenlegi_y = 3;
|
||||
} else if (random == 10) {
|
||||
player.transform.position = onefour.transform.position;
|
||||
hadiuzemlepes1.SetActive(true);
|
||||
hadiuzemlepes1.GetComponent<TMP_Text>().text = moveCounter.ToString();
|
||||
jelenlegi_x = 1;
|
||||
jelenlegi_y = 4;
|
||||
} else if (random == 11) {
|
||||
player.transform.position = twofour.transform.position;
|
||||
konyvtarlepes1.SetActive(true);
|
||||
konyvtarlepes1.GetComponent<TMP_Text>().text = moveCounter.ToString();
|
||||
jelenlegi_x = 2;
|
||||
jelenlegi_y = 4;
|
||||
} else if (random == 12) {
|
||||
player.transform.position = threefour.transform.position;
|
||||
korhazlepes1.SetActive(true);
|
||||
korhazlepes1.GetComponent<TMP_Text>().text = moveCounter.ToString();
|
||||
jelenlegi_x = 3;
|
||||
jelenlegi_y = 4;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ MonoBehaviour:
|
||||
m_MinSize: {x: 300, y: 200}
|
||||
m_MaxSize: {x: 24288, y: 16192}
|
||||
vertical: 0
|
||||
controlID: 1156
|
||||
controlID: 99
|
||||
--- !u!114 &2
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -45,9 +45,9 @@ MonoBehaviour:
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 303
|
||||
x: 286
|
||||
y: 19
|
||||
width: 1144
|
||||
width: 1174
|
||||
height: 571
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
@@ -59,7 +59,7 @@ MonoBehaviour:
|
||||
m_ShowGizmos: 0
|
||||
m_TargetDisplay: 0
|
||||
m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_TargetSize: {x: 1144, y: 550}
|
||||
m_TargetSize: {x: 1174, y: 550}
|
||||
m_TextureFilterMode: 0
|
||||
m_TextureHideFlags: 61
|
||||
m_RenderIMGUI: 1
|
||||
@@ -74,8 +74,8 @@ MonoBehaviour:
|
||||
m_VRangeLocked: 0
|
||||
hZoomLockedByDefault: 0
|
||||
vZoomLockedByDefault: 0
|
||||
m_HBaseRangeMin: -572
|
||||
m_HBaseRangeMax: 572
|
||||
m_HBaseRangeMin: -587
|
||||
m_HBaseRangeMax: 587
|
||||
m_VBaseRangeMin: -275
|
||||
m_VBaseRangeMax: 275
|
||||
m_HAllowExceedBaseRangeMin: 1
|
||||
@@ -95,23 +95,23 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 21
|
||||
width: 1144
|
||||
width: 1174
|
||||
height: 550
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Translation: {x: 572, y: 275}
|
||||
m_Translation: {x: 587, y: 275}
|
||||
m_MarginLeft: 0
|
||||
m_MarginRight: 0
|
||||
m_MarginTop: 0
|
||||
m_MarginBottom: 0
|
||||
m_LastShownAreaInsideMargins:
|
||||
serializedVersion: 2
|
||||
x: -572
|
||||
x: -587
|
||||
y: -275
|
||||
width: 1144
|
||||
width: 1174
|
||||
height: 550
|
||||
m_MinimalGUI: 1
|
||||
m_defaultScale: 1
|
||||
m_LastWindowPixelSize: {x: 1144, y: 571}
|
||||
m_LastWindowPixelSize: {x: 1174, y: 571}
|
||||
m_ClearInEditMode: 1
|
||||
m_NoCameraWarning: 1
|
||||
m_LowResolutionForAspectRatios: 01000000000000000000
|
||||
@@ -141,7 +141,7 @@ MonoBehaviour:
|
||||
m_MinSize: {x: 200, y: 200}
|
||||
m_MaxSize: {x: 16192, y: 16192}
|
||||
vertical: 1
|
||||
controlID: 1157
|
||||
controlID: 100
|
||||
--- !u!114 &4
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -166,7 +166,7 @@ MonoBehaviour:
|
||||
m_MinSize: {x: 200, y: 100}
|
||||
m_MaxSize: {x: 16192, y: 8096}
|
||||
vertical: 0
|
||||
controlID: 1158
|
||||
controlID: 73
|
||||
--- !u!114 &5
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -661,7 +661,7 @@ MonoBehaviour:
|
||||
m_MinSize: {x: 200, y: 100}
|
||||
m_MaxSize: {x: 16192, y: 8096}
|
||||
vertical: 0
|
||||
controlID: 1099
|
||||
controlID: 101
|
||||
--- !u!114 &10
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -681,8 +681,8 @@ MonoBehaviour:
|
||||
y: 0
|
||||
width: 803
|
||||
height: 355
|
||||
m_MinSize: {x: 231, y: 271}
|
||||
m_MaxSize: {x: 10001, y: 10021}
|
||||
m_MinSize: {x: 230, y: 250}
|
||||
m_MaxSize: {x: 10000, y: 10000}
|
||||
m_ActualView: {fileID: 11}
|
||||
m_Panes:
|
||||
- {fileID: 11}
|
||||
@@ -742,8 +742,8 @@ MonoBehaviour:
|
||||
m_IsLocked: 0
|
||||
m_FolderTreeState:
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs: 12760000
|
||||
m_LastClickedID: 30226
|
||||
m_SelectedIDs: 14760000
|
||||
m_LastClickedID: 30228
|
||||
m_ExpandedIDs: 00000000f4750000
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
@@ -797,8 +797,8 @@ MonoBehaviour:
|
||||
m_Icon: {fileID: 0}
|
||||
m_ResourceFile:
|
||||
m_ListAreaState:
|
||||
m_SelectedInstanceIDs: a4260000
|
||||
m_LastClickedInstanceID: 9892
|
||||
m_SelectedInstanceIDs:
|
||||
m_LastClickedInstanceID: 0
|
||||
m_HadKeyboardFocusLastEvent: 1
|
||||
m_ExpandedInstanceIDs: c623000000000000
|
||||
m_RenameOverlay:
|
||||
@@ -942,7 +942,7 @@ MonoBehaviour:
|
||||
m_CachedPref: 160
|
||||
m_ControlHash: -371814159
|
||||
m_PrefName: Preview_InspectorPreview
|
||||
m_LastInspectedObjectInstanceID: 9892
|
||||
m_LastInspectedObjectInstanceID: -1
|
||||
m_LastVerticalScrollValue: 0
|
||||
m_GlobalObjectId:
|
||||
m_InspectorMode: 0
|
||||
|
||||
Reference in New Issue
Block a user