This commit is contained in:
2022-11-11 13:42:40 +01:00
parent bb12d1db31
commit d8d3fbca59
6 changed files with 770 additions and 261 deletions

View File

@@ -2504,6 +2504,7 @@ GameObject:
- component: {fileID: 197904224}
- component: {fileID: 197904225}
- component: {fileID: 197904226}
- component: {fileID: 197904227}
m_Layer: 0
m_Name: Mangager
m_TagString: Untagged
@@ -2619,28 +2620,52 @@ MonoBehaviour:
THE_Camera: {fileID: 519420031}
oneone: {fileID: 987029839}
oneone_Collider: {fileID: 987029841}
eromulepes1: {fileID: 162089714}
eromulepes2: {fileID: 1817526423}
twoone: {fileID: 1872852}
twoone_Collider: {fileID: 1872854}
feketepiaclepes1: {fileID: 1923189549}
feketepiaclepes2: {fileID: 492780302}
threeone: {fileID: 365563086}
threeone_Collider: {fileID: 365563088}
metrolepes1: {fileID: 1668966828}
metrolepes2: {fileID: 1352871614}
onetwo: {fileID: 1580358510}
onetwo_Collider: {fileID: 1580358512}
szervereklepes1: {fileID: 1618306676}
szervereklepes2: {fileID: 1008356026}
twotwo: {fileID: 1173707736}
twotwo_Collider: {fileID: 1173707738}
kingcasinolepes1: {fileID: 842310887}
kingcasinolepes2: {fileID: 1016171085}
threetwo: {fileID: 53063408}
threetwo_Collider: {fileID: 53063410}
feltoltolepes1: {fileID: 941673217}
feltoltolepes2: {fileID: 1736440008}
onethree: {fileID: 829877507}
onethree_Collider: {fileID: 829877509}
kutatolaborlepes1: {fileID: 1728495419}
kutatolaborlepes2: {fileID: 1157818476}
twothree: {fileID: 711095006}
twothree_Collider: {fileID: 711095008}
kriptoklublepes1: {fileID: 788040709}
kriptoklublepes2: {fileID: 1284364058}
threethree: {fileID: 710452254}
threethree_Collider: {fileID: 710452256}
cyberplazalepes1: {fileID: 1345864116}
cyberplazalepes2: {fileID: 885485863}
onefour: {fileID: 146512456}
onefour_Collider: {fileID: 146512458}
hadiuzemlepes1: {fileID: 292232705}
hadiuzemlepes2: {fileID: 1412092646}
twofour: {fileID: 1541045929}
twofour_Collider: {fileID: 1541045931}
konyvtarlepes1: {fileID: 322629429}
konyvtarlepes2: {fileID: 1119725871}
threefour: {fileID: 255844034}
threefour_Collider: {fileID: 255844036}
korhazlepes1: {fileID: 975035252}
korhazlepes2: {fileID: 986735257}
player: {fileID: 1559678231}
--- !u!114 &197904224
MonoBehaviour:
@@ -2712,6 +2737,19 @@ MonoBehaviour:
- {fileID: 1832345121}
- {fileID: 2125780727}
- {fileID: 248187470}
--- !u!114 &197904227
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 197904216}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f0547daa776d6894eb26f972bda2e52d, type: 3}
m_Name:
m_EditorClassIdentifier:
fpsText: {fileID: 947787407}
--- !u!1 &245385154
GameObject:
m_ObjectHideFlags: 0
@@ -12991,6 +13029,7 @@ RectTransform:
- {fileID: 1379644799}
- {fileID: 1177305937}
- {fileID: 1221921131}
- {fileID: 947787406}
m_Father: {fileID: 0}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@@ -14573,6 +14612,141 @@ CanvasRenderer:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 944412723}
m_CullTransparentMesh: 1
--- !u!1 &947787405
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 947787406}
- component: {fileID: 947787408}
- component: {fileID: 947787407}
m_Layer: 5
m_Name: fpsText
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &947787406
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 947787405}
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_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 891272366}
m_RootOrder: 21
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: 512.57, y: -178.72}
m_SizeDelta: {x: 200, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &947787407
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 947787405}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 'Fps: '
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_sharedMaterial: {fileID: 2180264, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 18
m_fontSizeBase: 18
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 1
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &947787408
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 947787405}
m_CullTransparentMesh: 1
--- !u!1 &949439448
GameObject:
m_ObjectHideFlags: 0
@@ -20633,7 +20807,7 @@ RectTransform:
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: -1.69, y: 0.83}
m_AnchoredPosition: {x: -1.6900008, y: 0.8299999}
m_SizeDelta: {x: 17.13, y: 22.33}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &1345864118

16
Assets/Scripts/fps.cs Normal file
View File

@@ -0,0 +1,16 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class fps : MonoBehaviour
{
public TMP_Text fpsText;
// Update is called once per frame
void Update()
{
int current = (int)(1f / Time.unscaledDeltaTime);
fpsText.text = "Fps: " + current.ToString();
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f0547daa776d6894eb26f972bda2e52d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -10,42 +10,67 @@ public class movement : MonoBehaviour {
public GameObject oneone;
public Collider2D oneone_Collider;
public GameObject eromulepes1;
public GameObject eromulepes2;
public GameObject twoone;
public Collider2D twoone_Collider;
public GameObject feketepiaclepes1;
public GameObject feketepiaclepes2;
public GameObject threeone;
public Collider2D threeone_Collider;
public GameObject metrolepes1;
public GameObject metrolepes2;
public GameObject onetwo;
public Collider2D onetwo_Collider;
public GameObject szervereklepes1;
public GameObject szervereklepes2;
public GameObject twotwo;
public Collider2D twotwo_Collider;
public GameObject kingcasinolepes1;
public GameObject kingcasinolepes2;
public GameObject threetwo;
public Collider2D threetwo_Collider;
public GameObject feltoltolepes1;
public GameObject feltoltolepes2;
public GameObject onethree;
public Collider2D onethree_Collider;
public GameObject kutatolaborlepes1;
public GameObject kutatolaborlepes2;
public GameObject twothree;
public Collider2D twothree_Collider;
public GameObject kriptoklublepes1;
public GameObject kriptoklublepes2;
public GameObject threethree;
public Collider2D threethree_Collider;
public GameObject cyberplazalepes1;
public GameObject cyberplazalepes2;
public GameObject onefour;
public Collider2D onefour_Collider;
public GameObject hadiuzemlepes1;
public GameObject hadiuzemlepes2;
public GameObject twofour;
public Collider2D twofour_Collider;
public GameObject konyvtarlepes1;
public GameObject konyvtarlepes2;
public GameObject threefour;
public Collider2D threefour_Collider;
public GameObject korhazlepes1;
public GameObject korhazlepes2;
public GameObject player;
int oneonecount = 0;
int twoonecount = 0;
int threeonecount = 0;
@@ -71,6 +96,7 @@ public class movement : MonoBehaviour {
{"", "", "", "" }
};
int jelenlegi_x = 1;
int jelenlegi_y = 1;
int akciopont = 20;
@@ -79,6 +105,42 @@ public class movement : MonoBehaviour {
// Start is called before the first frame update
void Start() {
player.transform.position = oneone.transform.position;
eromulepes1.SetActive(false);
eromulepes2.SetActive(false);
feketepiaclepes1.SetActive(false);
feketepiaclepes2.SetActive(false);
metrolepes1.SetActive(false);
metrolepes2.SetActive(false);
szervereklepes1.SetActive(false);
szervereklepes2.SetActive(false);
kingcasinolepes1.SetActive(false);
kingcasinolepes2.SetActive(false);
feltoltolepes1.SetActive(false);
feltoltolepes2.SetActive(false);
kutatolaborlepes1.SetActive(false);
kutatolaborlepes2.SetActive(false);
kriptoklublepes1.SetActive(false);
kriptoklublepes2.SetActive(false);
cyberplazalepes1.SetActive(false);
cyberplazalepes2.SetActive(false);
hadiuzemlepes1.SetActive(false);
hadiuzemlepes2.SetActive(false);
konyvtarlepes1.SetActive(false);
konyvtarlepes2.SetActive(false);
korhazlepes1.SetActive(false);
korhazlepes2.SetActive(false);
}
private void kezdoHelyMeghatarzoas() {
@@ -97,25 +159,33 @@ public class movement : MonoBehaviour {
if (helyek[y, x].Equals("oneone")) {
Debug.Log("Player clicked on the collider: " + oneone_Collider.gameObject.name);
tavolsag = math.abs((jelenlegi_x + jelenlegi_y) - ((x + 1) + (y + 1)));
if (tavolsag < 5) {
if (eromulepes1.activeSelf == true & eromulepes2.activeSelf == true) {
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
if (tavolsag == 1 && akciopont != 0) {
if (oneonecount < 2) {
player.transform.position = oneone.transform.position;
jelenlegi_x = 1;
jelenlegi_y = 1;
akciopont = akciopont - 1;
oneonecount = oneonecount + 1;
Debug.Log(akciopont);
} else {
Debug.Log("Maximum kétszer léphetsz egy mez?re");
else
{
if (tavolsag == 1 && akciopont != 0)
{
player.transform.position = oneone.transform.position;
jelenlegi_x = 1;
jelenlegi_y = 1;
akciopont = akciopont - 1;
oneonecount = oneonecount + 1;
Debug.Log(akciopont);
if (eromulepes1.activeSelf == true)
{
eromulepes2.SetActive(true);
}
else
{
eromulepes1.SetActive(true);
}
}
else
{
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
}
} else {
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
}
}
}
}
@@ -127,21 +197,42 @@ public class movement : MonoBehaviour {
if (helyek[y, x].Equals("twoone")) {
Debug.Log("Player clicked on the collider: " + twoone_Collider.gameObject.name);
tavolsag = math.abs((jelenlegi_x + jelenlegi_y) - ((x + 1) + (y + 1)));
if (tavolsag == 1 && akciopont != 0) {
if (twoonecount < 2) {
player.transform.position = twoone.transform.position;
jelenlegi_x = 2;
jelenlegi_y = 1;
akciopont = akciopont - 1;
twoonecount = twoonecount + 1;
Debug.Log(akciopont);
} else {
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
} else {
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
if (feketepiaclepes1.activeSelf == true & feketepiaclepes2.activeSelf == true)
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
else
{
if (tavolsag == 1 && akciopont != 0)
{
if (twoonecount < 2)
{
player.transform.position = twoone.transform.position;
jelenlegi_x = 2;
jelenlegi_y = 1;
akciopont = akciopont - 1;
twoonecount = twoonecount + 1;
Debug.Log(akciopont);
if (feketepiaclepes1.activeSelf == true)
{
feketepiaclepes2.SetActive(true);
}
else
{
feketepiaclepes1.SetActive(true);
}
}
else
{
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
}
else
{
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
}
}
}
}
}
@@ -153,20 +244,40 @@ public class movement : MonoBehaviour {
if (helyek[y, x].Equals("threeone")) {
Debug.Log("Player clicked on the collider: " + threeone_Collider.gameObject.name);
tavolsag = math.abs((jelenlegi_x + jelenlegi_y) - ((x + 1) + (y + 1)));
if (tavolsag == 1 && akciopont != 0) {
if (threeonecount < 2) {
player.transform.position = threeone.transform.position;
jelenlegi_x = 3;
jelenlegi_y = 1;
akciopont = akciopont - 1;
threeonecount++;
Debug.Log(akciopont);
} else {
Debug.Log("Maximum kétszer léphetsz egy mez?re");
if (metrolepes1.activeSelf == true & metrolepes2.activeSelf == true)
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
else
{
if (tavolsag == 1 && akciopont != 0)
{
if (threeonecount < 2)
{
player.transform.position = threeone.transform.position;
jelenlegi_x = 3;
jelenlegi_y = 1;
akciopont = akciopont - 1;
threeonecount++;
Debug.Log(akciopont);
if (metrolepes1.activeSelf == true)
{
metrolepes2.SetActive(true);
}
else
{
metrolepes1.SetActive(true);
}
}
else
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
}
else
{
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
}
} else {
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
}
}
}
@@ -180,19 +291,40 @@ public class movement : MonoBehaviour {
Debug.Log("Player clicked on the collider: " + onetwo_Collider.gameObject.name);
tavolsag = math.abs((jelenlegi_x + jelenlegi_y) - ((x + 1) + (y + 1)));
if (tavolsag == 1 && akciopont != 0) {
if (onetwocount < 2) {
player.transform.position = onetwo.transform.position;
jelenlegi_x = 1;
jelenlegi_y = 2;
akciopont = akciopont - 1;
onetwocount++;
Debug.Log(akciopont);
} else {
Debug.Log("Maximum kétszer léphetsz egy mez?re");
if (szervereklepes1.activeSelf == true & szervereklepes2.activeSelf == true)
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
else
{
if (tavolsag == 1 && akciopont != 0)
{
if (onetwocount < 2)
{
player.transform.position = onetwo.transform.position;
jelenlegi_x = 1;
jelenlegi_y = 2;
akciopont = akciopont - 1;
onetwocount++;
Debug.Log(akciopont);
if (szervereklepes1.activeSelf == true)
{
szervereklepes2.SetActive(true);
}
else
{
szervereklepes1.SetActive(true);
}
}
else
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
}
else
{
Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni");
}
} else {
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
}
}
}
@@ -206,20 +338,41 @@ public class movement : MonoBehaviour {
Debug.Log("Player clicked on the collider: " + twotwo_Collider.gameObject.name);
tavolsag = math.abs((jelenlegi_x + jelenlegi_y) - ((x + 1) + (y + 1)));
if (tavolsag == 1 && akciopont != 0) {
if (twotwocount < 2) {
player.transform.position = twotwo.transform.position;
jelenlegi_x = 2;
jelenlegi_y = 2;
akciopont = akciopont - 1;
Debug.Log(akciopont);
twotwocount++;
} else {
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
} else {
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
if (kingcasinolepes1.activeSelf == true & kingcasinolepes2.activeSelf == true)
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
else {
if (tavolsag == 1 && akciopont != 0)
{
if (twotwocount < 2)
{
player.transform.position = twotwo.transform.position;
jelenlegi_x = 2;
jelenlegi_y = 2;
akciopont = akciopont - 1;
Debug.Log(akciopont);
twotwocount++;
if (kingcasinolepes1.activeSelf == true)
{
kingcasinolepes2.SetActive(true);
}
else
{
kingcasinolepes1.SetActive(true);
}
}
else
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
}
else
{
Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni");
}
}
}
}
}
@@ -232,20 +385,42 @@ public class movement : MonoBehaviour {
Debug.Log("Player clicked on the collider: " + threetwo_Collider.gameObject.name);
tavolsag = math.abs((jelenlegi_x + jelenlegi_y) - ((x + 1) + (y + 1)));
if (tavolsag == 1 && akciopont != 0) {
if (threetwocount < 2) {
player.transform.position = threetwo.transform.position;
jelenlegi_x = 3;
jelenlegi_y = 2;
akciopont = akciopont - 1;
Debug.Log(akciopont);
threetwocount++;
} else {
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
} else {
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
if (feltoltolepes1.activeSelf == true & feltoltolepes2.activeSelf == true)
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
else
{
if (tavolsag == 1 && akciopont != 0)
{
if (threetwocount < 2)
{
player.transform.position = threetwo.transform.position;
jelenlegi_x = 3;
jelenlegi_y = 2;
akciopont = akciopont - 1;
Debug.Log(akciopont);
threetwocount++;
if (feltoltolepes1.activeSelf == true)
{
feltoltolepes2.SetActive(true);
}
else
{
feltoltolepes1.SetActive(true);
}
}
else
{
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
}
else
{
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
}
}
}
}
}
@@ -258,20 +433,42 @@ public class movement : MonoBehaviour {
Debug.Log("Player clicked on the collider: " + onethree_Collider.gameObject.name);
tavolsag = math.abs((jelenlegi_x + jelenlegi_y) - ((x + 1) + (y + 1)));
if (tavolsag == 1 && akciopont != 0) {
if (onethreecount < 2) {
player.transform.position = onethree.transform.position;
jelenlegi_x = 1;
jelenlegi_y = 3;
akciopont = akciopont - 1;
Debug.Log(akciopont);
onethreecount++;
} else {
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
} else {
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
if (kutatolaborlepes1.activeSelf == true & kutatolaborlepes2.activeSelf == true)
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
else
{
if (tavolsag == 1 && akciopont != 0)
{
if (onethreecount < 2)
{
player.transform.position = onethree.transform.position;
jelenlegi_x = 1;
jelenlegi_y = 3;
akciopont = akciopont - 1;
Debug.Log(akciopont);
onethreecount++;
if (kutatolaborlepes1.activeSelf == true)
{
kutatolaborlepes2.SetActive(true);
}
else
{
kutatolaborlepes1.SetActive(true);
}
}
else
{
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
}
else
{
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
}
}
}
}
}
@@ -284,20 +481,43 @@ public class movement : MonoBehaviour {
Debug.Log("Player clicked on the collider: " + twothree_Collider.gameObject.name);
tavolsag = math.abs((jelenlegi_x + jelenlegi_y) - ((x + 1) + (y + 1)));
if (tavolsag == 1 && akciopont != 0) {
if (twothreecount < 2) {
player.transform.position = twothree.transform.position;
jelenlegi_x = 2;
jelenlegi_y = 3;
akciopont = akciopont - 1;
Debug.Log(akciopont);
twothreecount++;
} else {
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
} else {
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
if (kriptoklublepes1.activeSelf == true & kriptoklublepes2.activeSelf == true)
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
else
{
if (tavolsag == 1 && akciopont != 0)
{
if (twothreecount < 2)
{
player.transform.position = twothree.transform.position;
jelenlegi_x = 2;
jelenlegi_y = 3;
akciopont = akciopont - 1;
Debug.Log(akciopont);
twothreecount++;
if (kriptoklublepes1.activeSelf == true)
{
kriptoklublepes2.SetActive(true);
}
else
{
kriptoklublepes1.SetActive(true);
}
}
else
{
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
}
else
{
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
}
}
}
}
}
@@ -310,20 +530,42 @@ public class movement : MonoBehaviour {
Debug.Log("Player clicked on the collider: " + threethree_Collider.gameObject.name);
tavolsag = math.abs((jelenlegi_x + jelenlegi_y) - ((x + 1) + (y + 1)));
if (tavolsag == 1 && akciopont != 0) {
if (threethreecount < 2) {
player.transform.position = threethree.transform.position;
jelenlegi_x = 3;
jelenlegi_y = 3;
akciopont = akciopont - 1;
Debug.Log(akciopont);
threethreecount++;
} else {
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
} else {
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
if (cyberplazalepes1.activeSelf == true & cyberplazalepes2.activeSelf == true)
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
else
{
if (tavolsag == 1 && akciopont != 0)
{
if (threethreecount < 2)
{
player.transform.position = threethree.transform.position;
jelenlegi_x = 3;
jelenlegi_y = 3;
akciopont = akciopont - 1;
Debug.Log(akciopont);
threethreecount++;
if (cyberplazalepes1.activeSelf == true)
{
cyberplazalepes2.SetActive(true);
}
else
{
cyberplazalepes1.SetActive(true);
}
}
else
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
}
else
{
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
}
}
}
}
}
@@ -336,20 +578,42 @@ public class movement : MonoBehaviour {
Debug.Log("Player clicked on the collider: " + onefour_Collider.gameObject.name);
tavolsag = math.abs((jelenlegi_x + jelenlegi_y) - ((x + 1) + (y + 1)));
if (tavolsag == 1 && akciopont != 0) {
if (onefourcount < 2) {
player.transform.position = onefour.transform.position;
jelenlegi_x = 1;
jelenlegi_y = 4;
akciopont = akciopont - 1;
Debug.Log(akciopont);
onefourcount++;
} else {
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
} else {
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
if (hadiuzemlepes1.activeSelf == true & hadiuzemlepes2.activeSelf == true)
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
else
{
if (tavolsag == 1 && akciopont != 0)
{
if (onefourcount < 2)
{
player.transform.position = onefour.transform.position;
jelenlegi_x = 1;
jelenlegi_y = 4;
akciopont = akciopont - 1;
Debug.Log(akciopont);
onefourcount++;
if (hadiuzemlepes1.activeSelf == true)
{
hadiuzemlepes2.SetActive(true);
}
else
{
hadiuzemlepes1.SetActive(true);
}
}
else
{
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
}
else
{
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
}
}
}
}
}
@@ -362,20 +626,42 @@ public class movement : MonoBehaviour {
Debug.Log("Player clicked on the collider: " + twofour_Collider.gameObject.name);
tavolsag = math.abs((jelenlegi_x + jelenlegi_y) - ((x + 1) + (y + 1)));
if (tavolsag == 1 && akciopont != 0) {
if (twofourcount < 2) {
player.transform.position = twofour.transform.position;
jelenlegi_x = 2;
jelenlegi_y = 4;
akciopont = akciopont - 1;
Debug.Log(akciopont);
twofourcount++;
} else {
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
} else {
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
if (konyvtarlepes1.activeSelf == true & konyvtarlepes2.activeSelf == true)
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
else
{
if (tavolsag == 1 && akciopont != 0)
{
if (twofourcount < 2)
{
player.transform.position = twofour.transform.position;
jelenlegi_x = 2;
jelenlegi_y = 4;
akciopont = akciopont - 1;
Debug.Log(akciopont);
twofourcount++;
if (konyvtarlepes1.activeSelf == true)
{
konyvtarlepes2.SetActive(true);
}
else
{
konyvtarlepes1.SetActive(true);
}
}
else
{
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
}
else
{
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
}
}
}
}
}
@@ -388,20 +674,42 @@ public class movement : MonoBehaviour {
Debug.Log("Player clicked on the collider: " + threefour_Collider.gameObject.name);
tavolsag = math.abs((jelenlegi_x + jelenlegi_y) - ((x + 1) + (y + 1)));
if (tavolsag == 1 && akciopont != 0) {
if (threefourcount < 2) {
player.transform.position = threefour.transform.position;
jelenlegi_x = 3;
jelenlegi_y = 4;
akciopont = akciopont - 1;
Debug.Log(akciopont);
threefourcount++;
} else {
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
} else {
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
if (korhazlepes1.activeSelf == true & korhazlepes2.activeSelf == true)
{
Debug.Log("Maximum kétszer léphetsz egy mezõre");
}
else
{
if (tavolsag == 1 && akciopont != 0)
{
if (threefourcount < 2)
{
player.transform.position = threefour.transform.position;
jelenlegi_x = 3;
jelenlegi_y = 4;
akciopont = akciopont - 1;
Debug.Log(akciopont);
threefourcount++;
if (korhazlepes1.activeSelf == true)
{
korhazlepes2.SetActive(true);
}
else
{
korhazlepes1.SetActive(true);
}
}
else
{
Debug.Log("Maximum kétszer léphetsz egy mez?re");
}
}
else
{
Debug.Log("Nincs elég akciópontod vagy nem 1 mez?n belül akarsz lépni");
}
}
}
}
}

View File

@@ -19,12 +19,12 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 30
width: 1920
height: 947
width: 1366
height: 635
m_MinSize: {x: 300, y: 200}
m_MaxSize: {x: 24288, y: 16192}
vertical: 0
controlID: 19121
controlID: 2441
--- !u!114 &2
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -45,10 +45,10 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 330
y: 19
width: 1111
height: 571
x: 234
y: 73
width: 790
height: 376
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
@@ -59,7 +59,7 @@ MonoBehaviour:
m_ShowGizmos: 0
m_TargetDisplay: 0
m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
m_TargetSize: {x: 1111, y: 550}
m_TargetSize: {x: 790, y: 355}
m_TextureFilterMode: 0
m_TextureHideFlags: 61
m_RenderIMGUI: 1
@@ -74,10 +74,10 @@ MonoBehaviour:
m_VRangeLocked: 0
hZoomLockedByDefault: 0
vZoomLockedByDefault: 0
m_HBaseRangeMin: -555.5
m_HBaseRangeMax: 555.5
m_VBaseRangeMin: -275
m_VBaseRangeMax: 275
m_HBaseRangeMin: -395
m_HBaseRangeMax: 395
m_VBaseRangeMin: -177.5
m_VBaseRangeMax: 177.5
m_HAllowExceedBaseRangeMin: 1
m_HAllowExceedBaseRangeMax: 1
m_VAllowExceedBaseRangeMin: 1
@@ -86,7 +86,7 @@ MonoBehaviour:
m_HSlider: 0
m_VSlider: 0
m_IgnoreScrollWheelUntilClicked: 0
m_EnableMouseInput: 0
m_EnableMouseInput: 1
m_EnableSliderZoomHorizontal: 0
m_EnableSliderZoomVertical: 0
m_UniformScale: 1
@@ -95,23 +95,23 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 21
width: 1111
height: 550
width: 790
height: 355
m_Scale: {x: 1, y: 1}
m_Translation: {x: 555.5, y: 275}
m_Translation: {x: 395, y: 177.5}
m_MarginLeft: 0
m_MarginRight: 0
m_MarginTop: 0
m_MarginBottom: 0
m_LastShownAreaInsideMargins:
serializedVersion: 2
x: -555.5
y: -275
width: 1111
height: 550
x: -395
y: -177.5
width: 790
height: 355
m_MinimalGUI: 1
m_defaultScale: 1
m_LastWindowPixelSize: {x: 1111, y: 571}
m_LastWindowPixelSize: {x: 790, y: 376}
m_ClearInEditMode: 1
m_NoCameraWarning: 1
m_LowResolutionForAspectRatios: 01000000000000000000
@@ -136,12 +136,12 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 1442
height: 947
width: 1026
height: 635
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 16192, y: 16192}
vertical: 1
controlID: 19122
controlID: 2442
--- !u!114 &4
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -161,12 +161,12 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 1442
height: 592
width: 1026
height: 397
m_MinSize: {x: 200, y: 100}
m_MaxSize: {x: 16192, y: 8096}
vertical: 0
controlID: 19123
controlID: 2443
--- !u!114 &5
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -184,10 +184,10 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 329
height: 592
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 4000, y: 4000}
width: 234
height: 397
m_MinSize: {x: 201, y: 221}
m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 6}
m_Panes:
- {fileID: 6}
@@ -215,18 +215,18 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 73
width: 328
height: 571
width: 233
height: 376
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
m_SaveData: []
m_SceneHierarchy:
m_TreeViewState:
scrollPos: {x: 0, y: 0}
scrollPos: {x: 0, y: 157}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: cccaffff18fbffff6460000024620000
m_ExpandedIDs: a2e6ffffe2e6ffffb6e9ffff20fbffff3a5f00005c5f00005860000068620000ae630000266400002a64000068640000da640000cc6500000866000078660000e0660000e8660000ec670000fcac000074b20000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -265,10 +265,10 @@ MonoBehaviour:
m_Children: []
m_Position:
serializedVersion: 2
x: 329
x: 234
y: 0
width: 1113
height: 592
width: 792
height: 397
m_MinSize: {x: 202, y: 221}
m_MaxSize: {x: 4002, y: 4021}
m_ActualView: {fileID: 2}
@@ -297,10 +297,10 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 329
x: 234
y: 73
width: 1111
height: 571
width: 790
height: 376
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
@@ -557,9 +557,9 @@ MonoBehaviour:
m_PlayAudio: 0
m_AudioPlay: 0
m_Position:
m_Target: {x: 0.90484023, y: 0.85474867, z: -0.40270457}
m_Target: {x: 7.5735636, y: -5.465334, z: -0.085131764}
speed: 2
m_Value: {x: 0.90484023, y: 0.85474867, z: -0.40270457}
m_Value: {x: 7.5735636, y: -5.465334, z: -0.085131764}
m_RenderMode: 0
m_CameraMode:
drawMode: 0
@@ -610,9 +610,9 @@ MonoBehaviour:
speed: 2
m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size:
m_Target: 9.024863
m_Target: 5.522076
speed: 2
m_Value: 9.024863
m_Value: 5.522076
m_Ortho:
m_Target: 1
speed: 2
@@ -655,13 +655,13 @@ MonoBehaviour:
m_Position:
serializedVersion: 2
x: 0
y: 592
width: 1442
height: 355
y: 397
width: 1026
height: 238
m_MinSize: {x: 200, y: 100}
m_MaxSize: {x: 16192, y: 8096}
vertical: 0
controlID: 19074
controlID: 2368
--- !u!114 &10
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -679,10 +679,10 @@ MonoBehaviour:
serializedVersion: 2
x: 0
y: 0
width: 790
height: 355
m_MinSize: {x: 230, y: 250}
m_MaxSize: {x: 10000, y: 10000}
width: 562
height: 238
m_MinSize: {x: 231, y: 271}
m_MaxSize: {x: 10001, y: 10021}
m_ActualView: {fileID: 11}
m_Panes:
- {fileID: 11}
@@ -709,9 +709,9 @@ MonoBehaviour:
m_Pos:
serializedVersion: 2
x: 0
y: 665
width: 789
height: 334
y: 470
width: 561
height: 217
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
@@ -737,14 +737,14 @@ MonoBehaviour:
m_LastFolders:
- Assets/Scripts
m_LastFoldersGridSize: 55
m_LastProjectPath: C:\dev\find the source\projekt\FindTheSource
m_LastProjectPath: C:\dev\find the source
m_LockTracker:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 86670000
m_LastClickedID: 26502
m_ExpandedIDs: 0000000070670000
m_SelectedIDs: 90680000
m_LastClickedID: 26768
m_ExpandedIDs: 000000007c68000000ca9a3bffffff7f
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -772,7 +772,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 0000000070670000
m_ExpandedIDs: 000000007c68000000ca9a3bffffff7f
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -797,9 +797,9 @@ MonoBehaviour:
m_Icon: {fileID: 0}
m_ResourceFile:
m_ListAreaState:
m_SelectedInstanceIDs: 40600000
m_LastClickedInstanceID: 24640
m_HadKeyboardFocusLastEvent: 0
m_SelectedInstanceIDs: 46aa0000
m_LastClickedInstanceID: 43590
m_HadKeyboardFocusLastEvent: 1
m_ExpandedInstanceIDs: c623000000000000
m_RenameOverlay:
m_UserAcceptedRename: 0
@@ -824,7 +824,7 @@ MonoBehaviour:
m_Icon: {fileID: 0}
m_ResourceFile:
m_NewAssetIndexInList: -1
m_ScrollPosition: {x: 0, y: 0}
m_ScrollPosition: {x: 0, y: 19}
m_GridSize: 55
m_SkipHiddenPackages: 0
m_DirectoriesAreaWidth: 193
@@ -843,12 +843,12 @@ MonoBehaviour:
m_Children: []
m_Position:
serializedVersion: 2
x: 790
x: 562
y: 0
width: 652
height: 355
m_MinSize: {x: 100, y: 100}
m_MaxSize: {x: 4000, y: 4000}
width: 464
height: 238
m_MinSize: {x: 102, y: 121}
m_MaxSize: {x: 4002, y: 4021}
m_ActualView: {fileID: 13}
m_Panes:
- {fileID: 13}
@@ -874,10 +874,10 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 790
y: 665
width: 650
height: 334
x: 562
y: 470
width: 462
height: 217
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
@@ -897,12 +897,12 @@ MonoBehaviour:
m_Children: []
m_Position:
serializedVersion: 2
x: 1442
x: 1026
y: 0
width: 478
height: 947
m_MinSize: {x: 275, y: 50}
m_MaxSize: {x: 4000, y: 4000}
width: 340
height: 635
m_MinSize: {x: 276, y: 71}
m_MaxSize: {x: 4001, y: 4021}
m_ActualView: {fileID: 15}
m_Panes:
- {fileID: 15}
@@ -928,10 +928,10 @@ MonoBehaviour:
m_Tooltip:
m_Pos:
serializedVersion: 2
x: 1442
x: 1026
y: 73
width: 477
height: 926
width: 339
height: 614
m_ViewDataDictionary: {fileID: 0}
m_OverlayCanvas:
m_LastAppliedPresetName: Default
@@ -942,7 +942,7 @@ MonoBehaviour:
m_CachedPref: 160
m_ControlHash: -371814159
m_PrefName: Preview_InspectorPreview
m_LastInspectedObjectInstanceID: 24640
m_LastInspectedObjectInstanceID: 43590
m_LastVerticalScrollValue: 0
m_GlobalObjectId:
m_InspectorMode: 0

View File

@@ -19,7 +19,7 @@ MonoBehaviour:
width: 1366
height: 685
m_ShowMode: 4
m_Title: Scene
m_Title: Hierarchy
m_RootView: {fileID: 2}
m_MinSize: {x: 875, y: 421}
m_MaxSize: {x: 10000, y: 10000}
@@ -119,7 +119,7 @@ MonoBehaviour:
m_MinSize: {x: 300, y: 200}
m_MaxSize: {x: 24288, y: 16192}
vertical: 0
controlID: 222
controlID: 4229
--- !u!114 &6
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -144,7 +144,7 @@ MonoBehaviour:
m_MinSize: {x: 200, y: 200}
m_MaxSize: {x: 16192, y: 16192}
vertical: 1
controlID: 223
controlID: 4234
--- !u!114 &7
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -169,7 +169,7 @@ MonoBehaviour:
m_MinSize: {x: 200, y: 100}
m_MaxSize: {x: 16192, y: 8096}
vertical: 0
controlID: 224
controlID: 4235
--- !u!114 &8
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -247,7 +247,7 @@ MonoBehaviour:
m_MinSize: {x: 200, y: 100}
m_MaxSize: {x: 16192, y: 8096}
vertical: 0
controlID: 270
controlID: 4258
--- !u!114 &11
MonoBehaviour:
m_ObjectHideFlags: 52
@@ -448,10 +448,10 @@ MonoBehaviour:
m_SaveData: []
m_SceneHierarchy:
m_TreeViewState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: a45f0000
m_LastClickedID: 24484
m_ExpandedIDs: 28fbffff18620000
scrollPos: {x: 0, y: 157}
m_SelectedIDs: 3aaf0000
m_LastClickedID: 44858
m_ExpandedIDs: a2e6ffffe2e6ffffb6e9ffff20fbffff3a5f00005c5f00005860000068620000ae630000266400002a64000068640000da640000cc6500000866000078660000e0660000e8660000ec670000fcac000074b20000
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -755,9 +755,9 @@ MonoBehaviour:
m_PlayAudio: 0
m_AudioPlay: 0
m_Position:
m_Target: {x: 3.1436596, y: 2.4994853, z: -0.15044256}
m_Target: {x: 7.5735636, y: -5.465334, z: -0.085131764}
speed: 2
m_Value: {x: 3.587545, y: 2.868825, z: -0.15637235}
m_Value: {x: 7.5735636, y: -5.465334, z: -0.085131764}
m_RenderMode: 0
m_CameraMode:
drawMode: 0
@@ -808,9 +808,9 @@ MonoBehaviour:
speed: 2
m_Value: {x: 0, y: 0, z: 0, w: 1}
m_Size:
m_Target: 12.584286
m_Target: 5.522076
speed: 2
m_Value: 13.177262
m_Value: 5.522076
m_Ortho:
m_Target: 1
speed: 2
@@ -889,9 +889,9 @@ MonoBehaviour:
m_IsLocked: 0
m_FolderTreeState:
scrollPos: {x: 0, y: 0}
m_SelectedIDs: 70670000
m_LastClickedID: 26480
m_ExpandedIDs: 000000006667000000ca9a3bffffff7f
m_SelectedIDs: 90680000
m_LastClickedID: 26768
m_ExpandedIDs: 000000007c68000000ca9a3bffffff7f
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -919,7 +919,7 @@ MonoBehaviour:
scrollPos: {x: 0, y: 0}
m_SelectedIDs:
m_LastClickedID: 0
m_ExpandedIDs: 000000006667000000ca9a3bffffff7f
m_ExpandedIDs: 000000007c68000000ca9a3bffffff7f
m_RenameOverlay:
m_UserAcceptedRename: 0
m_Name:
@@ -971,7 +971,7 @@ MonoBehaviour:
m_Icon: {fileID: 0}
m_ResourceFile:
m_NewAssetIndexInList: -1
m_ScrollPosition: {x: 0, y: 0}
m_ScrollPosition: {x: 0, y: 19}
m_GridSize: 55
m_SkipHiddenPackages: 0
m_DirectoriesAreaWidth: 193