valami
This commit is contained in:
@@ -205,7 +205,7 @@ public class Targyak : MonoBehaviour
|
||||
//ugynok.canKill = true; //barhol meg tud olni ha kattint
|
||||
|
||||
//deaktivalas
|
||||
jatekmanager.ugynokDeaktivalas(true);
|
||||
jatekmanager.ugynokDeaktivalas(false);
|
||||
ugynok.droidagyuAktivalva = true;
|
||||
|
||||
Debug.Log("kattints egy ugynok csapatra!");
|
||||
|
||||
@@ -295,6 +295,7 @@ public class Ugynok : MonoBehaviour
|
||||
int x = (int)Char.GetNumericValue(ugynokText.gameObject.name[7]);
|
||||
int y = (int)Char.GetNumericValue(ugynokText.gameObject.name[8]);
|
||||
Debug.Log("ugynok x: " + x + " y: "+y);
|
||||
Debug.Log("movement x: " + movement.jelenlegi_x + " y: " + movement.jelenlegi_y);
|
||||
|
||||
if(ugynokText.text.Equals("")){ //ha nincs ott ugynok csapat ne csinaljon semmit
|
||||
Debug.Log("itt nincs ugynok csapat!!");
|
||||
@@ -320,7 +321,7 @@ public class Ugynok : MonoBehaviour
|
||||
ugynokText.text = "X"; //ugynok csapat megolve
|
||||
|
||||
//minden vissza kapcsolasa
|
||||
jatekmanager.ugynokDeaktivalas(false);
|
||||
jatekmanager.ugynokDeaktivalas(true);
|
||||
droidagyuAktivalva = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -61,46 +61,46 @@ public class jatekmanager : MonoBehaviour
|
||||
source = FindObjectOfType<Source>();
|
||||
}
|
||||
|
||||
public void ugynokDeaktivalas(bool kikapcsolas){
|
||||
energiafejlesztés.SetActive(kikapcsolas);
|
||||
akciofejlesztés.SetActive(kikapcsolas);
|
||||
harcfejlesztés.SetActive(kikapcsolas);
|
||||
ujradobasfejlesztés.SetActive(kikapcsolas);
|
||||
hackfejlesztés.SetActive(kikapcsolas);
|
||||
kovetkezokor.SetActive(kikapcsolas);
|
||||
betarazas.SetActive(kikapcsolas);
|
||||
nyomozas.SetActive(kikapcsolas);
|
||||
hackeles.SetActive(kikapcsolas);
|
||||
public void ugynokDeaktivalas(bool bekapcsolas){
|
||||
energiafejlesztés.SetActive(bekapcsolas);
|
||||
akciofejlesztés.SetActive(bekapcsolas);
|
||||
harcfejlesztés.SetActive(bekapcsolas);
|
||||
ujradobasfejlesztés.SetActive(bekapcsolas);
|
||||
hackfejlesztés.SetActive(bekapcsolas);
|
||||
kovetkezokor.SetActive(bekapcsolas);
|
||||
betarazas.SetActive(bekapcsolas);
|
||||
nyomozas.SetActive(bekapcsolas);
|
||||
hackeles.SetActive(bekapcsolas);
|
||||
|
||||
//roll dice gomb
|
||||
rolldice.SetActive(kikapcsolas);
|
||||
rolldice.SetActive(bekapcsolas);
|
||||
//kovetkezo kor
|
||||
kovetkezokor.SetActive(kikapcsolas);
|
||||
kovetkezokor.SetActive(bekapcsolas);
|
||||
//helyszinaktivalas
|
||||
helyszinaktivalasBtn.gameObject.SetActive(kikapcsolas);
|
||||
helyszinaktivalasBtn.gameObject.SetActive(bekapcsolas);
|
||||
|
||||
|
||||
movement.oneone_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.onetwo_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.onethree_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.onefour_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.twoone_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.twotwo_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.twothree_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.twofour_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.threeone_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.threetwo_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.threethree_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.threefour_Collider.gameObject.SetActive(kikapcsolas);
|
||||
movement.oneone_Collider.gameObject.SetActive(bekapcsolas);
|
||||
movement.onetwo_Collider.gameObject.SetActive(bekapcsolas);
|
||||
movement.onethree_Collider.gameObject.SetActive(bekapcsolas);
|
||||
movement.onefour_Collider.gameObject.SetActive(bekapcsolas);
|
||||
movement.twoone_Collider.gameObject.SetActive(bekapcsolas);
|
||||
movement.twotwo_Collider.gameObject.SetActive(bekapcsolas);
|
||||
movement.twothree_Collider.gameObject.SetActive(bekapcsolas);
|
||||
movement.twofour_Collider.gameObject.SetActive(bekapcsolas);
|
||||
movement.threeone_Collider.gameObject.SetActive(bekapcsolas);
|
||||
movement.threetwo_Collider.gameObject.SetActive(bekapcsolas);
|
||||
movement.threethree_Collider.gameObject.SetActive(bekapcsolas);
|
||||
movement.threefour_Collider.gameObject.SetActive(bekapcsolas);
|
||||
|
||||
targyak.hackerFelhasznalva.GetComponent<Button>().gameObject.SetActive(kikapcsolas);
|
||||
targyak.lathatatlanFelhasznalva.GetComponent<Button>().gameObject.SetActive(kikapcsolas);
|
||||
targyak.droidFelhasznalva.GetComponent<Button>().gameObject.SetActive(kikapcsolas);
|
||||
targyak.matavFelhasznalva.GetComponent<Button>().gameObject.SetActive(kikapcsolas);
|
||||
targyak.alomhozoFelhasznalva.GetComponent<Button>().gameObject.SetActive(kikapcsolas);
|
||||
targyak.hackerFelhasznalva.GetComponent<Button>().gameObject.SetActive(bekapcsolas);
|
||||
targyak.lathatatlanFelhasznalva.GetComponent<Button>().gameObject.SetActive(bekapcsolas);
|
||||
targyak.droidFelhasznalva.GetComponent<Button>().gameObject.SetActive(bekapcsolas);
|
||||
targyak.matavFelhasznalva.GetComponent<Button>().gameObject.SetActive(bekapcsolas);
|
||||
targyak.alomhozoFelhasznalva.GetComponent<Button>().gameObject.SetActive(bekapcsolas);
|
||||
|
||||
dice.dice1btnBtn.gameObject.SetActive(kikapcsolas);
|
||||
dice.dice2btnBtn.gameObject.SetActive(kikapcsolas);
|
||||
dice.dice1btnBtn.gameObject.SetActive(bekapcsolas);
|
||||
dice.dice2btnBtn.gameObject.SetActive(bekapcsolas);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
||||
@@ -15,11 +15,11 @@ MonoBehaviour:
|
||||
m_PixelRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 28
|
||||
width: 1366
|
||||
height: 672
|
||||
y: 43
|
||||
width: 1920
|
||||
height: 997
|
||||
m_ShowMode: 4
|
||||
m_Title: Hierarchy
|
||||
m_Title: Game
|
||||
m_RootView: {fileID: 2}
|
||||
m_MinSize: {x: 875, y: 300}
|
||||
m_MaxSize: {x: 10000, y: 10000}
|
||||
@@ -44,8 +44,8 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1366
|
||||
height: 672
|
||||
width: 1920
|
||||
height: 997
|
||||
m_MinSize: {x: 875, y: 300}
|
||||
m_MaxSize: {x: 10000, y: 10000}
|
||||
m_UseTopView: 1
|
||||
@@ -69,7 +69,7 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1366
|
||||
width: 1920
|
||||
height: 30
|
||||
m_MinSize: {x: 0, y: 0}
|
||||
m_MaxSize: {x: 0, y: 0}
|
||||
@@ -90,8 +90,8 @@ MonoBehaviour:
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 652
|
||||
width: 1366
|
||||
y: 977
|
||||
width: 1920
|
||||
height: 20
|
||||
m_MinSize: {x: 0, y: 0}
|
||||
m_MaxSize: {x: 0, y: 0}
|
||||
@@ -114,12 +114,12 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 30
|
||||
width: 1366
|
||||
height: 622
|
||||
width: 1920
|
||||
height: 947
|
||||
m_MinSize: {x: 300, y: 200}
|
||||
m_MaxSize: {x: 24288, y: 16192}
|
||||
vertical: 0
|
||||
controlID: 107
|
||||
controlID: 95
|
||||
--- !u!114 &6
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -139,12 +139,12 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 968
|
||||
height: 622
|
||||
width: 1482
|
||||
height: 947
|
||||
m_MinSize: {x: 200, y: 200}
|
||||
m_MaxSize: {x: 16192, y: 16192}
|
||||
vertical: 1
|
||||
controlID: 108
|
||||
controlID: 16
|
||||
--- !u!114 &7
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -164,12 +164,12 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 968
|
||||
height: 453
|
||||
width: 1482
|
||||
height: 690
|
||||
m_MinSize: {x: 200, y: 100}
|
||||
m_MaxSize: {x: 16192, y: 8096}
|
||||
vertical: 0
|
||||
controlID: 109
|
||||
controlID: 17
|
||||
--- !u!114 &8
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 52
|
||||
@@ -187,10 +187,10 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 259
|
||||
height: 453
|
||||
m_MinSize: {x: 201, y: 221}
|
||||
m_MaxSize: {x: 4001, y: 4021}
|
||||
width: 210
|
||||
height: 690
|
||||
m_MinSize: {x: 200, y: 200}
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_ActualView: {fileID: 13}
|
||||
m_Panes:
|
||||
- {fileID: 13}
|
||||
@@ -211,10 +211,10 @@ MonoBehaviour:
|
||||
m_Children: []
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 259
|
||||
x: 210
|
||||
y: 0
|
||||
width: 709
|
||||
height: 453
|
||||
width: 1272
|
||||
height: 690
|
||||
m_MinSize: {x: 202, y: 221}
|
||||
m_MaxSize: {x: 4002, y: 4021}
|
||||
m_ActualView: {fileID: 14}
|
||||
@@ -239,9 +239,9 @@ MonoBehaviour:
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 453
|
||||
width: 968
|
||||
height: 169
|
||||
y: 690
|
||||
width: 1482
|
||||
height: 257
|
||||
m_MinSize: {x: 231, y: 271}
|
||||
m_MaxSize: {x: 10001, y: 10021}
|
||||
m_ActualView: {fileID: 15}
|
||||
@@ -264,12 +264,12 @@ MonoBehaviour:
|
||||
m_Children: []
|
||||
m_Position:
|
||||
serializedVersion: 2
|
||||
x: 968
|
||||
x: 1482
|
||||
y: 0
|
||||
width: 398
|
||||
height: 622
|
||||
m_MinSize: {x: 101, y: 121}
|
||||
m_MaxSize: {x: 4001, y: 4021}
|
||||
width: 438
|
||||
height: 947
|
||||
m_MinSize: {x: 100, y: 100}
|
||||
m_MaxSize: {x: 4000, y: 4000}
|
||||
m_ActualView: {fileID: 16}
|
||||
m_Panes:
|
||||
- {fileID: 17}
|
||||
@@ -296,10 +296,10 @@ MonoBehaviour:
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 259
|
||||
y: 86
|
||||
width: 707
|
||||
height: 432
|
||||
x: 210
|
||||
y: 73
|
||||
width: 1270
|
||||
height: 669
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
@@ -310,7 +310,7 @@ MonoBehaviour:
|
||||
m_ShowGizmos: 0
|
||||
m_TargetDisplay: 0
|
||||
m_ClearColor: {r: 0, g: 0, b: 0, a: 0}
|
||||
m_TargetSize: {x: 707, y: 411}
|
||||
m_TargetSize: {x: 1270, y: 648}
|
||||
m_TextureFilterMode: 0
|
||||
m_TextureHideFlags: 61
|
||||
m_RenderIMGUI: 1
|
||||
@@ -325,10 +325,10 @@ MonoBehaviour:
|
||||
m_VRangeLocked: 0
|
||||
hZoomLockedByDefault: 0
|
||||
vZoomLockedByDefault: 0
|
||||
m_HBaseRangeMin: -353.5
|
||||
m_HBaseRangeMax: 353.5
|
||||
m_VBaseRangeMin: -205.5
|
||||
m_VBaseRangeMax: 205.5
|
||||
m_HBaseRangeMin: -635
|
||||
m_HBaseRangeMax: 635
|
||||
m_VBaseRangeMin: -324
|
||||
m_VBaseRangeMax: 324
|
||||
m_HAllowExceedBaseRangeMin: 1
|
||||
m_HAllowExceedBaseRangeMax: 1
|
||||
m_VAllowExceedBaseRangeMin: 1
|
||||
@@ -337,7 +337,7 @@ MonoBehaviour:
|
||||
m_HSlider: 0
|
||||
m_VSlider: 0
|
||||
m_IgnoreScrollWheelUntilClicked: 0
|
||||
m_EnableMouseInput: 1
|
||||
m_EnableMouseInput: 0
|
||||
m_EnableSliderZoomHorizontal: 0
|
||||
m_EnableSliderZoomVertical: 0
|
||||
m_UniformScale: 1
|
||||
@@ -346,23 +346,23 @@ MonoBehaviour:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 21
|
||||
width: 707
|
||||
height: 411
|
||||
width: 1270
|
||||
height: 648
|
||||
m_Scale: {x: 1, y: 1}
|
||||
m_Translation: {x: 353.5, y: 205.5}
|
||||
m_Translation: {x: 635, y: 324}
|
||||
m_MarginLeft: 0
|
||||
m_MarginRight: 0
|
||||
m_MarginTop: 0
|
||||
m_MarginBottom: 0
|
||||
m_LastShownAreaInsideMargins:
|
||||
serializedVersion: 2
|
||||
x: -353.5
|
||||
y: -205.5
|
||||
width: 707
|
||||
height: 411
|
||||
x: -635
|
||||
y: -324
|
||||
width: 1270
|
||||
height: 648
|
||||
m_MinimalGUI: 1
|
||||
m_defaultScale: 1
|
||||
m_LastWindowPixelSize: {x: 707, y: 432}
|
||||
m_LastWindowPixelSize: {x: 1270, y: 669}
|
||||
m_ClearInEditMode: 1
|
||||
m_NoCameraWarning: 1
|
||||
m_LowResolutionForAspectRatios: 01000000000000000000
|
||||
@@ -389,9 +389,9 @@ MonoBehaviour:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 86
|
||||
width: 258
|
||||
height: 432
|
||||
y: 73
|
||||
width: 209
|
||||
height: 669
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
@@ -399,9 +399,9 @@ MonoBehaviour:
|
||||
m_SceneHierarchy:
|
||||
m_TreeViewState:
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs:
|
||||
m_SelectedIDs: ca240000
|
||||
m_LastClickedID: 0
|
||||
m_ExpandedIDs: 28fbffffae6b0000e26b00005a6c0000826d00001472000030720000c4720000d67200001c7300002c730000b873000006750000527500000a76000048760000827600008a760000e2770000
|
||||
m_ExpandedIDs: 1cfbfffff26b00001a760000587600009a760000f6770000
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
@@ -445,10 +445,10 @@ MonoBehaviour:
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 259
|
||||
y: 86
|
||||
width: 707
|
||||
height: 432
|
||||
x: 210
|
||||
y: 73
|
||||
width: 1270
|
||||
height: 669
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
@@ -698,16 +698,16 @@ MonoBehaviour:
|
||||
m_WindowGUID: cc27987af1a868c49b0894db9c0f5429
|
||||
m_Gizmos: 1
|
||||
m_OverrideSceneCullingMask: 6917529027641081856
|
||||
m_SceneIsLit: 0
|
||||
m_SceneIsLit: 1
|
||||
m_SceneLighting: 1
|
||||
m_2DMode: 1
|
||||
m_isRotationLocked: 0
|
||||
m_PlayAudio: 0
|
||||
m_AudioPlay: 0
|
||||
m_Position:
|
||||
m_Target: {x: -6.322817, y: 3.0368094, z: -2.0708883}
|
||||
m_Target: {x: -4.9125323, y: -0.30520058, z: 0.077698514}
|
||||
speed: 2
|
||||
m_Value: {x: -6.322817, y: 3.0368094, z: -2.0708883}
|
||||
m_Value: {x: -4.9125323, y: -0.30520058, z: 0.077698514}
|
||||
m_RenderMode: 0
|
||||
m_CameraMode:
|
||||
drawMode: 0
|
||||
@@ -758,9 +758,9 @@ MonoBehaviour:
|
||||
speed: 2
|
||||
m_Value: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_Size:
|
||||
m_Target: 9.076144
|
||||
m_Target: 11.858034
|
||||
speed: 2
|
||||
m_Value: 9.076144
|
||||
m_Value: 11.858034
|
||||
m_Ortho:
|
||||
m_Target: 1
|
||||
speed: 2
|
||||
@@ -806,9 +806,9 @@ MonoBehaviour:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 539
|
||||
width: 967
|
||||
height: 148
|
||||
y: 763
|
||||
width: 1481
|
||||
height: 236
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
@@ -834,14 +834,14 @@ MonoBehaviour:
|
||||
m_LastFolders:
|
||||
- Assets/Scripts
|
||||
m_LastFoldersGridSize: 66
|
||||
m_LastProjectPath: /home/tom/Documents/dev/find the source
|
||||
m_LastProjectPath: C:\dev\find the source\projekt\FindTheSource
|
||||
m_LockTracker:
|
||||
m_IsLocked: 0
|
||||
m_FolderTreeState:
|
||||
scrollPos: {x: 0, y: 52}
|
||||
m_SelectedIDs: 007a0000
|
||||
m_LastClickedID: 31232
|
||||
m_ExpandedIDs: 00000000ea79000000ca9a3b
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs: 187a0000
|
||||
m_LastClickedID: 31256
|
||||
m_ExpandedIDs: 00000000f8790000
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
@@ -869,7 +869,7 @@ MonoBehaviour:
|
||||
scrollPos: {x: 0, y: 0}
|
||||
m_SelectedIDs:
|
||||
m_LastClickedID: 0
|
||||
m_ExpandedIDs: 00000000ea790000
|
||||
m_ExpandedIDs: 00000000f8790000
|
||||
m_RenameOverlay:
|
||||
m_UserAcceptedRename: 0
|
||||
m_Name:
|
||||
@@ -921,7 +921,7 @@ MonoBehaviour:
|
||||
m_Icon: {fileID: 0}
|
||||
m_ResourceFile:
|
||||
m_NewAssetIndexInList: -1
|
||||
m_ScrollPosition: {x: 0, y: 91}
|
||||
m_ScrollPosition: {x: 0, y: 0}
|
||||
m_GridSize: 66
|
||||
m_SkipHiddenPackages: 0
|
||||
m_DirectoriesAreaWidth: 193
|
||||
@@ -945,10 +945,10 @@ MonoBehaviour:
|
||||
m_Tooltip:
|
||||
m_Pos:
|
||||
serializedVersion: 2
|
||||
x: 968
|
||||
y: 86
|
||||
width: 397
|
||||
height: 601
|
||||
x: 1482
|
||||
y: 73
|
||||
width: 437
|
||||
height: 926
|
||||
m_ViewDataDictionary: {fileID: 0}
|
||||
m_OverlayCanvas:
|
||||
m_LastAppliedPresetName: Default
|
||||
@@ -987,7 +987,7 @@ MonoBehaviour:
|
||||
m_CachedPref: -160
|
||||
m_ControlHash: -371814159
|
||||
m_PrefName: Preview_InspectorPreview
|
||||
m_LastInspectedObjectInstanceID: 29806
|
||||
m_LastInspectedObjectInstanceID: 9418
|
||||
m_LastVerticalScrollValue: 0
|
||||
m_GlobalObjectId:
|
||||
m_InspectorMode: 0
|
||||
|
||||
Reference in New Issue
Block a user