diff --git a/Assets/Scenes/MainScene.unity b/Assets/Scenes/MainScene.unity index ca6d012..0cb69b2 100644 --- a/Assets/Scenes/MainScene.unity +++ b/Assets/Scenes/MainScene.unity @@ -123,6 +123,64 @@ NavMeshSettings: debug: m_Flags: 0 m_NavMeshData: {fileID: 0} +--- !u!1 &1872852 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1872853} + - component: {fileID: 1872854} + m_Layer: 0 + m_Name: twoone + m_TagString: Untagged + m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1872853 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1872852} + 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: 1405135744} + m_RootOrder: 8 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &1872854 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1872852} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: -0.18681622, y: -0.00030326843} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 2.3911839, y: 2.7324104} + m_EdgeRadius: 0 --- !u!1 &27789657 GameObject: m_ObjectHideFlags: 0 @@ -430,9 +488,68 @@ Transform: - {fileID: 1054331717} - {fileID: 28410455} - {fileID: 168362747} + - {fileID: 255844035} m_Father: {fileID: 1620267093} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &53063408 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 53063409} + - component: {fileID: 53063410} + m_Layer: 0 + m_Name: threetwo + m_TagString: Untagged + m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &53063409 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 53063408} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.19999981, y: 0.02, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1228659130} + m_RootOrder: 9 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &53063410 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 53063408} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: -0.18681622, y: -0.00030326843} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 2.3911839, y: 2.7324104} + m_EdgeRadius: 0 --- !u!1 &58084613 GameObject: m_ObjectHideFlags: 0 @@ -1503,6 +1620,64 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 144640421} m_CullTransparentMesh: 1 +--- !u!1 &146512456 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 146512457} + - component: {fileID: 146512458} + m_Layer: 0 + m_Name: onefour + m_TagString: Untagged + m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &146512457 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 146512456} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.07999945, y: 0.05, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1767879044} + m_RootOrder: 9 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &146512458 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 146512456} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0.04278183, y: 0.15401387} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 2.3861237, y: 2.6770391} + m_EdgeRadius: 0 --- !u!1 &162089714 GameObject: m_ObjectHideFlags: 0 @@ -2054,6 +2229,7 @@ GameObject: - component: {fileID: 197904217} - component: {fileID: 197904218} - component: {fileID: 197904219} + - component: {fileID: 197904220} m_Layer: 0 m_Name: Mangager m_TagString: Untagged @@ -2102,21 +2278,54 @@ MonoBehaviour: m_Script: {fileID: 11500000, guid: 413457e37755a704786899a2420c6b9a, type: 3} m_Name: m_EditorClassIdentifier: - oneone_Collider: {fileID: 253835024} THE_Camera: {fileID: 519420031} - oneone: {fileID: 253835022} - twoone: {fileID: 0} - threeone: {fileID: 0} - onetwo: {fileID: 0} - twotwo: {fileID: 0} - threetwo: {fileID: 0} - onethree: {fileID: 0} - twothree: {fileID: 0} - threethree: {fileID: 0} - onefour: {fileID: 0} - twofour: {fileID: 0} - threefour: {fileID: 0} - player: {fileID: 0} + oneone: {fileID: 987029839} + oneone_Collider: {fileID: 987029841} + twoone: {fileID: 1872852} + twoone_Collider: {fileID: 1872854} + threeone: {fileID: 365563086} + threeone_Collider: {fileID: 365563088} + onetwo: {fileID: 1580358510} + onetwo_Collider: {fileID: 1580358512} + twotwo: {fileID: 1173707736} + twotwo_Collider: {fileID: 1173707738} + threetwo: {fileID: 365563086} + threetwo_Collider: {fileID: 365563088} + onethree: {fileID: 829877507} + onethree_Collider: {fileID: 829877509} + twothree: {fileID: 711095006} + twothree_Collider: {fileID: 711095008} + threethree: {fileID: 710452254} + threethree_Collider: {fileID: 710452256} + onefour: {fileID: 146512456} + onefour_Collider: {fileID: 146512458} + twofour: {fileID: 1541045929} + twofour_Collider: {fileID: 1541045931} + threefour: {fileID: 255844034} + threefour_Collider: {fileID: 255844036} + player: {fileID: 1559678231} +--- !u!114 &197904220 +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: 895915bf45ed9b94e9288a0290386e58, type: 3} + m_Name: + m_EditorClassIdentifier: + diceSides: + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + - {fileID: 0} + hely1: {fileID: 0} + hely2: {fileID: 0} + diceResult: 0000000000000000 --- !u!1 &253835022 GameObject: m_ObjectHideFlags: 0 @@ -2180,6 +2389,64 @@ BoxCollider2D: serializedVersion: 2 m_Size: {x: 1, y: 1} m_EdgeRadius: 0 +--- !u!1 &255844034 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 255844035} + - component: {fileID: 255844036} + m_Layer: 0 + m_Name: threefour + m_TagString: Untagged + m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &255844035 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 255844034} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.1500001, y: 0.52, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 45666889} + m_RootOrder: 9 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &255844036 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 255844034} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: -0.18681622, y: -0.00030326843} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 2.3911839, y: 2.7324104} + m_EdgeRadius: 0 --- !u!1 &272530646 GameObject: m_ObjectHideFlags: 0 @@ -3405,6 +3672,7 @@ Transform: - {fileID: 1429282886} - {fileID: 1375720666} - {fileID: 944412724} + - {fileID: 1580358511} m_Father: {fileID: 1819162546} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -3542,6 +3810,64 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 365240012} m_CullTransparentMesh: 1 +--- !u!1 &365563086 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 365563087} + - component: {fileID: 365563088} + m_Layer: 0 + m_Name: threeone + m_TagString: Untagged + m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &365563087 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 365563086} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0.02, y: 0.27, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1117282719} + m_RootOrder: 8 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &365563088 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 365563086} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: -0.18681622, y: -0.00030326843} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 2.3911839, y: 2.7324104} + m_EdgeRadius: 0 --- !u!1 &410263759 GameObject: m_ObjectHideFlags: 0 @@ -6999,6 +7325,122 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 694600664} m_CullTransparentMesh: 1 +--- !u!1 &710452254 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 710452255} + - component: {fileID: 710452256} + m_Layer: 0 + m_Name: threethree + m_TagString: Untagged + m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &710452255 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 710452254} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.11000013, y: 0.5, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1339188195} + m_RootOrder: 8 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &710452256 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 710452254} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: -0.18681622, y: -0.00030326843} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 2.3911839, y: 2.7324104} + m_EdgeRadius: 0 +--- !u!1 &711095006 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 711095007} + - component: {fileID: 711095008} + m_Layer: 0 + m_Name: twothree + m_TagString: Untagged + m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &711095007 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 711095006} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.08000088, y: 0.11, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 2116651430} + m_RootOrder: 8 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &711095008 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 711095006} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: -0.18681622, y: -0.00030326843} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 2.3911839, y: 2.7324104} + m_EdgeRadius: 0 --- !u!1 &716950395 GameObject: m_ObjectHideFlags: 0 @@ -8107,6 +8549,64 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 815573858} m_CullTransparentMesh: 1 +--- !u!1 &829877507 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 829877508} + - component: {fileID: 829877509} + m_Layer: 0 + m_Name: onethree + m_TagString: Untagged + m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &829877508 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 829877507} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.009999752, y: -0.1, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1871225617} + m_RootOrder: 9 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &829877509 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 829877507} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0.04278183, y: 0.15401387} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 2.3861237, y: 2.6770391} + m_EdgeRadius: 0 --- !u!1 &833259105 GameObject: m_ObjectHideFlags: 0 @@ -9005,6 +9505,7 @@ RectTransform: - {fileID: 365240013} - {fileID: 1202715285} - {fileID: 731636858} + - {fileID: 1393612612} m_Father: {fileID: 0} m_RootOrder: 4 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -9404,7 +9905,6 @@ GameObject: - component: {fileID: 921900543} - component: {fileID: 921900542} - component: {fileID: 921900541} - - component: {fileID: 921900540} - component: {fileID: 921900544} m_Layer: 5 m_Name: dice2btn @@ -9434,25 +9934,6 @@ RectTransform: m_AnchoredPosition: {x: 200.6, y: -240.42001} m_SizeDelta: {x: 39.77, y: 39.68} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &921900540 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 921900538} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 895915bf45ed9b94e9288a0290386e58, type: 3} - m_Name: - m_EditorClassIdentifier: - diceSides: - - {fileID: 21300000, guid: 8221f9fb8d5a05c4a808bf5562a0261d, type: 3} - - {fileID: 21300000, guid: 03a930ad3e9b27d47a72ccbf3b61a4e8, type: 3} - - {fileID: 21300000, guid: cebdbbf97a0395c40850121cdfa5eb9c, type: 3} - - {fileID: 21300000, guid: 30468b905dedac144b0a8640608dca0c, type: 3} - - {fileID: 21300000, guid: 1b26588c2a8b17f4a9fcfc8377102e1d, type: 3} - - {fileID: 21300000, guid: 8d8a82287846c3d4892b15d8ab640d68, type: 3} --- !u!114 &921900541 MonoBehaviour: m_ObjectHideFlags: 0 @@ -9496,19 +9977,7 @@ MonoBehaviour: m_TargetGraphic: {fileID: 921900542} m_OnClick: m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 921900540} - m_TargetAssemblyTypeName: Dice, Assembly-CSharp - m_MethodName: OnMouseDown - m_Mode: 1 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 + m_Calls: [] --- !u!114 &921900542 MonoBehaviour: m_ObjectHideFlags: 0 @@ -10933,6 +11402,64 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 986735257} m_CullTransparentMesh: 1 +--- !u!1 &987029839 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 987029840} + - component: {fileID: 987029841} + m_Layer: 0 + m_Name: oneone + m_TagString: Untagged + m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &987029840 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 987029839} + 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: 1661214550} + m_RootOrder: 10 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &987029841 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 987029839} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0.06004238, y: 0.16511726} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 2.3959923, y: 2.7562485} + m_EdgeRadius: 0 --- !u!1 &993969070 GameObject: m_ObjectHideFlags: 0 @@ -12280,6 +12807,7 @@ Transform: - {fileID: 169295794} - {fileID: 1116327552} - {fileID: 27789658} + - {fileID: 365563087} m_Father: {fileID: 1620267093} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -12993,6 +13521,64 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1157818476} m_CullTransparentMesh: 1 +--- !u!1 &1173707736 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1173707737} + - component: {fileID: 1173707738} + m_Layer: 0 + m_Name: twotwo + m_TagString: Untagged + m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1173707737 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1173707736} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: 0.07000065, y: -0.06, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1848662044} + m_RootOrder: 9 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &1173707738 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1173707736} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: -0.18681622, y: -0.00030326843} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 2.3911839, y: 2.7324104} + m_EdgeRadius: 0 --- !u!1 &1201900456 GameObject: m_ObjectHideFlags: 0 @@ -13691,6 +14277,7 @@ Transform: - {fileID: 473458442} - {fileID: 1826425728} - {fileID: 462887942} + - {fileID: 53063409} m_Father: {fileID: 1620267093} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -13730,6 +14317,7 @@ Transform: - {fileID: 1347432662} - {fileID: 1363492851} - {fileID: 1507402161} + - {fileID: 1541045930} m_Father: {fileID: 1131058372} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -14566,6 +15154,7 @@ Transform: - {fileID: 1962024231} - {fileID: 1126485703} - {fileID: 1131695912} + - {fileID: 710452255} m_Father: {fileID: 1620267093} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -15618,6 +16207,152 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1387573553} m_CullTransparentMesh: 1 +--- !u!1 &1393612611 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1393612612} + - component: {fileID: 1393612615} + - component: {fileID: 1393612614} + - component: {fileID: 1393612613} + m_Layer: 5 + m_Name: RollDice + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &1393612612 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1393612611} + 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: + - {fileID: 2056361760} + m_Father: {fileID: 891272366} + m_RootOrder: 9 + 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: -505, y: 49} + m_SizeDelta: {x: 160, y: 30} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &1393612613 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1393612611} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Navigation: + m_Mode: 3 + m_WrapAround: 0 + m_SelectOnUp: {fileID: 0} + m_SelectOnDown: {fileID: 0} + m_SelectOnLeft: {fileID: 0} + m_SelectOnRight: {fileID: 0} + m_Transition: 1 + m_Colors: + m_NormalColor: {r: 1, g: 1, b: 1, a: 1} + m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1} + m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1} + m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608} + m_ColorMultiplier: 1 + m_FadeDuration: 0.1 + m_SpriteState: + m_HighlightedSprite: {fileID: 0} + m_PressedSprite: {fileID: 0} + m_SelectedSprite: {fileID: 0} + m_DisabledSprite: {fileID: 0} + m_AnimationTriggers: + m_NormalTrigger: Normal + m_HighlightedTrigger: Highlighted + m_PressedTrigger: Pressed + m_SelectedTrigger: Selected + m_DisabledTrigger: Disabled + m_Interactable: 1 + m_TargetGraphic: {fileID: 1393612614} + m_OnClick: + m_PersistentCalls: + m_Calls: + - m_Target: {fileID: 197904220} + m_TargetAssemblyTypeName: Dice, Assembly-CSharp + m_MethodName: renderDice + m_Mode: 2 + m_Arguments: + m_ObjectArgument: {fileID: 1620774311} + m_ObjectArgumentAssemblyTypeName: UnityEngine.GameObject, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 + - m_Target: {fileID: 197904220} + m_TargetAssemblyTypeName: Dice, Assembly-CSharp + m_MethodName: renderDice + m_Mode: 2 + m_Arguments: + m_ObjectArgument: {fileID: 921900538} + m_ObjectArgumentAssemblyTypeName: UnityEngine.GameObject, UnityEngine + m_IntArgument: 0 + m_FloatArgument: 0 + m_StringArgument: + m_BoolArgument: 0 + m_CallState: 2 +--- !u!114 &1393612614 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1393612611} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, 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_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0} + m_Type: 1 + m_PreserveAspect: 0 + m_FillCenter: 1 + m_FillMethod: 4 + m_FillAmount: 1 + m_FillClockwise: 1 + m_FillOrigin: 0 + m_UseSpriteMesh: 0 + m_PixelsPerUnitMultiplier: 1 +--- !u!222 &1393612615 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1393612611} + m_CullTransparentMesh: 1 --- !u!1 &1405135743 GameObject: m_ObjectHideFlags: 0 @@ -15654,6 +16389,7 @@ Transform: - {fileID: 1216668347} - {fileID: 1573977805} - {fileID: 272530647} + - {fileID: 1872853} m_Father: {fileID: 1131058372} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -16845,6 +17581,64 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1538197609} m_CullTransparentMesh: 1 +--- !u!1 &1541045929 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1541045930} + - component: {fileID: 1541045931} + m_Layer: 0 + m_Name: twofour + m_TagString: Untagged + m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1541045930 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1541045929} + m_LocalRotation: {x: -0, y: -0, z: -0, w: 1} + m_LocalPosition: {x: -0.0099983215, y: 0.14, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1267975127} + m_RootOrder: 8 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &1541045931 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1541045929} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: -0.18681622, y: -0.00030326843} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 2.3911839, y: 2.7324104} + m_EdgeRadius: 0 --- !u!1 &1547303660 GameObject: m_ObjectHideFlags: 0 @@ -17168,6 +17962,90 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1557912400} m_CullTransparentMesh: 1 +--- !u!1 &1559678231 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1559678233} + - component: {fileID: 1559678232} + m_Layer: 0 + m_Name: player + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!212 &1559678232 +SpriteRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1559678231} + m_Enabled: 1 + m_CastShadows: 0 + m_ReceiveShadows: 0 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 0 + m_RayTraceProcedural: 0 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 0 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_Sprite: {fileID: 7482667652216324306, guid: 311925a002f4447b3a28927169b83ea6, type: 3} + m_Color: {r: 1, g: 0, b: 0, a: 1} + m_FlipX: 0 + m_FlipY: 0 + m_DrawMode: 0 + m_Size: {x: 1, y: 1} + m_AdaptiveModeThreshold: 0.5 + m_SpriteTileMode: 0 + m_WasSpriteAssigned: 1 + m_MaskInteraction: 0 + m_SpriteSortPoint: 0 +--- !u!4 &1559678233 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1559678231} + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -40.2, y: 0.78821117, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_RootOrder: 7 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &1573977804 GameObject: m_ObjectHideFlags: 0 @@ -17303,6 +18181,64 @@ CanvasRenderer: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1573977804} m_CullTransparentMesh: 1 +--- !u!1 &1580358510 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1580358511} + - component: {fileID: 1580358512} + m_Layer: 0 + m_Name: onetwo + m_TagString: Untagged + m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1580358511 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1580358510} + 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: 357101321} + m_RootOrder: 8 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!61 &1580358512 +BoxCollider2D: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1580358510} + m_Enabled: 1 + m_Density: 1 + m_Material: {fileID: 0} + m_IsTrigger: 1 + m_UsedByEffector: 0 + m_UsedByComposite: 0 + m_Offset: {x: 0.04278183, y: 0.15401387} + m_SpriteTilingProperty: + border: {x: 0, y: 0, z: 0, w: 0} + pivot: {x: 0, y: 0} + oldSize: {x: 0, y: 0} + newSize: {x: 0, y: 0} + adaptiveTilingThreshold: 0 + drawMode: 0 + adaptiveTiling: 0 + m_AutoTiling: 0 + serializedVersion: 2 + m_Size: {x: 2.3861237, y: 2.6770391} + m_EdgeRadius: 0 --- !u!1 &1583842798 GameObject: m_ObjectHideFlags: 0 @@ -17755,7 +18691,6 @@ GameObject: - component: {fileID: 1620774316} - component: {fileID: 1620774315} - component: {fileID: 1620774314} - - component: {fileID: 1620774313} - component: {fileID: 1620774317} m_Layer: 5 m_Name: dice1btn @@ -17785,25 +18720,6 @@ RectTransform: m_AnchoredPosition: {x: 153.86, y: -240.42} m_SizeDelta: {x: 39.77, y: 39.68} m_Pivot: {x: 0.5, y: 0.5} ---- !u!114 &1620774313 -MonoBehaviour: - m_ObjectHideFlags: 0 - m_CorrespondingSourceObject: {fileID: 0} - m_PrefabInstance: {fileID: 0} - m_PrefabAsset: {fileID: 0} - m_GameObject: {fileID: 1620774311} - m_Enabled: 1 - m_EditorHideFlags: 0 - m_Script: {fileID: 11500000, guid: 895915bf45ed9b94e9288a0290386e58, type: 3} - m_Name: - m_EditorClassIdentifier: - diceSides: - - {fileID: 21300000, guid: 8221f9fb8d5a05c4a808bf5562a0261d, type: 3} - - {fileID: 21300000, guid: 03a930ad3e9b27d47a72ccbf3b61a4e8, type: 3} - - {fileID: 21300000, guid: cebdbbf97a0395c40850121cdfa5eb9c, type: 3} - - {fileID: 21300000, guid: 30468b905dedac144b0a8640608dca0c, type: 3} - - {fileID: 21300000, guid: 1b26588c2a8b17f4a9fcfc8377102e1d, type: 3} - - {fileID: 21300000, guid: 8d8a82287846c3d4892b15d8ab640d68, type: 3} --- !u!114 &1620774314 MonoBehaviour: m_ObjectHideFlags: 0 @@ -17847,19 +18763,7 @@ MonoBehaviour: m_TargetGraphic: {fileID: 1620774315} m_OnClick: m_PersistentCalls: - m_Calls: - - m_Target: {fileID: 1620774313} - m_TargetAssemblyTypeName: Dice, Assembly-CSharp - m_MethodName: OnMouseDown - m_Mode: 1 - m_Arguments: - m_ObjectArgument: {fileID: 0} - m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine - m_IntArgument: 0 - m_FloatArgument: 0 - m_StringArgument: - m_BoolArgument: 0 - m_CallState: 2 + m_Calls: [] --- !u!114 &1620774315 MonoBehaviour: m_ObjectHideFlags: 0 @@ -18502,6 +19406,7 @@ Transform: - {fileID: 120887878} - {fileID: 2070386154} - {fileID: 253835023} + - {fileID: 987029840} m_Father: {fileID: 1819162546} m_RootOrder: 0 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -19656,6 +20561,7 @@ Transform: - {fileID: 1872052769} - {fileID: 970497336} - {fileID: 565058295} + - {fileID: 146512457} m_Father: {fileID: 1819162546} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -19941,7 +20847,7 @@ GameObject: m_Layer: 0 m_Name: Ipari m_TagString: Untagged - m_Icon: {fileID: 0} + m_Icon: {fileID: 3936346786652291628, guid: 0000000000000000d000000000000000, type: 0} m_NavMeshLayer: 0 m_StaticEditorFlags: 0 m_IsActive: 1 @@ -20425,6 +21331,7 @@ Transform: - {fileID: 2084459195} - {fileID: 890272857} - {fileID: 1729396155} + - {fileID: 1173707737} m_Father: {fileID: 1131058372} m_RootOrder: 1 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -20465,6 +21372,7 @@ Transform: - {fileID: 1995086239} - {fileID: 876362591} - {fileID: 644513948} + - {fileID: 829877508} m_Father: {fileID: 1819162546} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} @@ -22854,6 +23762,141 @@ Transform: m_Father: {fileID: 468695192} m_RootOrder: 3 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &2056361759 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2056361760} + - component: {fileID: 2056361762} + - component: {fileID: 2056361761} + m_Layer: 5 + m_Name: Text (TMP) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!224 &2056361760 +RectTransform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2056361759} + 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: 1393612612} + m_RootOrder: 0 + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_AnchorMin: {x: 0, y: 0} + m_AnchorMax: {x: 1, y: 1} + m_AnchoredPosition: {x: 0, y: 0} + m_SizeDelta: {x: 0, y: 0} + m_Pivot: {x: 0.5, y: 0.5} +--- !u!114 &2056361761 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2056361759} + 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: Button + 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: 4281479730 + m_fontColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, 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: 24 + m_fontSizeBase: 24 + m_fontWeight: 400 + m_enableAutoSizing: 0 + m_fontSizeMin: 18 + m_fontSizeMax: 72 + m_fontStyle: 0 + m_HorizontalAlignment: 2 + m_VerticalAlignment: 512 + 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 &2056361762 +CanvasRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2056361759} + m_CullTransparentMesh: 1 --- !u!1 &2070386153 GameObject: m_ObjectHideFlags: 0 @@ -23295,6 +24338,7 @@ Transform: - {fileID: 720969164} - {fileID: 58084614} - {fileID: 1557912401} + - {fileID: 711095007} m_Father: {fileID: 1131058372} m_RootOrder: 2 m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Assets/Scripts/Dice.cs b/Assets/Scripts/Dice.cs index 45785cd..29222c9 100644 --- a/Assets/Scripts/Dice.cs +++ b/Assets/Scripts/Dice.cs @@ -1,40 +1,37 @@ using System.Collections; +using Unity.VisualScripting; using UnityEngine; +using System.Threading.Tasks; +using System.Threading; public class Dice : MonoBehaviour { public Sprite[] diceSides = new Sprite[6]; - private SpriteRenderer rend; + public SpriteRenderer hely1; + public SpriteRenderer hely2; - private void Start () { - //Debug.Log("in"); + public int[] diceResult = new int[2]; - rend = GetComponent(); - - // Innen szedi a képeket - //diceSides = Resources.LoadAll("\\Dice"); - - /*foreach (var t in diceSides) { - Debug.Log(t.name); - }*/ + private void Start() { + //renderer = go.GetComponent(); } - + // Ha rákattintassz meghívja a RollTheDice-ot - public void OnMouseDown() + /*public void OnMouseDown() { StartCoroutine("RollTheDice"); - } + }*/ // A RollTheDice - private IEnumerator RollTheDice() + /*private IEnumerator RollTheDice() { int randomDiceSide = 0; int finalSide = 0; - for (int i = 0; i <= 20; i++) + for (int i = 0; i < 20; i++) { randomDiceSide = Random.Range(0, 5); @@ -46,5 +43,38 @@ public class Dice : MonoBehaviour { finalSide = randomDiceSide + 1; Debug.Log(finalSide); + }*/ + + public int RollDice(SpriteRenderer renderer) { + int randomDiceSide = 0; + int finalSide = 0; + + for (int i = 0; i < 20; i++) { + randomDiceSide = Random.Range(0, 5); + + renderer.sprite = diceSides[Random.Range(0, 5)]; + renderer.size = new Vector2(38, 38); + + //yield return new WaitForSeconds(0.05f); + Thread.Sleep(500); + } + + finalSide = randomDiceSide + 1; + Debug.Log(finalSide); + + return finalSide; + } + + public void renderDice(GameObject go) { + do { + diceResult[0] = RollDice(hely1); + diceResult[1] = RollDice(hely2); + } while (diceResult[0] == diceResult[1]); + + hely1.sprite = diceSides[diceResult[0]]; + hely1.size = new Vector2(38, 38); + + hely2.sprite = diceSides[diceResult[0]]; + hely2.size = new Vector2(38, 38); } } diff --git a/Assets/Scripts/movement.cs b/Assets/Scripts/movement.cs index 8b223f9..e380b76 100644 --- a/Assets/Scripts/movement.cs +++ b/Assets/Scripts/movement.cs @@ -2,17 +2,11 @@ using System; using System.Collections; using System.Collections.Generic; using UnityEngine; +using UnityEngine.EventSystems; +using Unity.Mathematics; public class movement : MonoBehaviour { - private static int w = 3; //ennyi oszlop van a mapon - private static int h = 4; //ennyi sor van a mapon - - - public GameObject[,] helyszinek = new GameObject[h, w]; - public Collider2D[,] colliders = new Collider2D[h, w]; - - public Camera THE_Camera; public GameObject oneone; @@ -53,12 +47,11 @@ public class movement : MonoBehaviour public GameObject player; - private int jelenlegi_x = 1; - private int jelenlegi_y = 1; - private int akciopont = 6; - private int tavolsag = 0; - private string[,] helyek = new string[4, 3]//kell e meg? + int w = 2; //ennyi oszlop van a mapon + int h = 3; //ennyi sor van a mapon + + string[,] helyek = new string[4, 3] { {"oneone", "twoone", "threeone" }, {"onetwo", "twotwo", "threetwo" }, @@ -66,14 +59,22 @@ public class movement : MonoBehaviour {"onefour", "twofour", "threefour" } }; - private void Awake() { - + int jelenlegi_x = 1; + int jelenlegi_y = 1; + int akciopont = 12; + int tavolsag = 0; + + private void Start() { + player.transform.position = oneone.transform.position; } - public void FixedUpdate() + + // Update is called once per frame + public void Update() { - // player mozgat�sa es konzolra iratas - //ha kattint nezze meg a tombbon hogy overlappol valamelyik colliderrel + tavolsag = math.abs(tavolsag); + + // player mozgatása és konzolra iratás if (Input.GetKeyDown(KeyCode.Mouse0) && oneone_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))) { for (int x = 0; x < w; x++) @@ -83,49 +84,333 @@ public class movement : MonoBehaviour if (helyek[x,y].Equals("oneone")) { Debug.Log("Player clicked on the collider: " + oneone_Collider.gameObject.name); - tavolsag = x + y - jelenlegi_x + jelenlegi_y; - if (tavolsag < 1) - { - tavolsag = -tavolsag; - if (tavolsag == 1 && akciopont != 0) + tavolsag = math.abs((jelenlegi_x + jelenlegi_y) - ((x + 1) + (y + 1))); + + if (tavolsag == 1 && akciopont != 0) { - player.transform.position = oneone.transform.position; - jelenlegi_x = 1; - jelenlegi_y = 1; + player.transform.position = oneone.transform.position; + jelenlegi_x = 1; + jelenlegi_y = 1; + akciopont = akciopont - 1; + Debug.Log(akciopont); } - else + else { - Debug.Log("Nincs eleg akciopontod vagy nem 1 mezon belul akarsz lepni"); + Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni"); } - } + } - //break; ?? } } } - /////////////////////////// - /// - if (Input.GetKeyDown(KeyCode.Mouse0)) { - for (int i = 0; i < colliders.GetLength(0); i++) { - for (int j = 0; j < colliders.GetLength(1); j++) { - if (colliders[i, j].OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))){ - Debug.Log("Player clicked on the collider: " + colliders[i,j].gameObject.name); - tavolsag = i + j - jelenlegi_x + jelenlegi_y; - if (tavolsag < 1) { - tavolsag = -tavolsag; - if (tavolsag == 1 && akciopont != 0) { - player.transform.position = oneone.transform.position; - jelenlegi_x = 1; - jelenlegi_y = 1; - } else { - Debug.Log("Nincs eleg akciopontod vagy nem 1 mezon belul akarsz lepni"); - } - } - } + if (Input.GetKeyDown(KeyCode.Mouse0) && twoone_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))) + { + for (int x = 0; x < w; x++) + { + for (int y = 0; y < h; y++) + { + if (helyek[x,y].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) + { + player.transform.position = twoone.transform.position; + jelenlegi_x = 2; + jelenlegi_y = 1; + akciopont = akciopont - 1; + Debug.Log(akciopont); + } + else + { + Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni"); } } } - } + } } + if (Input.GetKeyDown(KeyCode.Mouse0) && threeone_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))) + { + for (int x = 0; x < w; x++) + { + for (int y = 0; y < h; y++) + { + if (helyek[x,y].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) + { + player.transform.position = threeone.transform.position; + jelenlegi_x = 3; + jelenlegi_y = 1; + akciopont = akciopont - 1; + Debug.Log(akciopont); + } + else + { + Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni"); + } + } + } + } + } + + if (Input.GetKeyDown(KeyCode.Mouse0) && onetwo_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))) + { + for (int x = 0; x < w; x++) + { + for (int y = 0; y < h; y++) + { + if (helyek[x,y].Equals("onetwo")) + { + 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) + { + player.transform.position = onetwo.transform.position; + jelenlegi_x = 1; + jelenlegi_y = 2; + akciopont = akciopont - 1; + Debug.Log(akciopont); + } + else + { + Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni"); + } + } + } + } + } + + if (Input.GetKeyDown(KeyCode.Mouse0) && twotwo_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))) + { + for (int x = 0; x < w; x++) + { + for (int y = 0; y < h; y++) + { + if (helyek[x,y].Equals("twotwo")) + { + 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) + { + player.transform.position = twotwo.transform.position; + jelenlegi_x = 2; + jelenlegi_y = 2; + akciopont = akciopont - 1; + Debug.Log(akciopont); + } + else + { + Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni"); + } + } + } + } + } + + if (Input.GetKeyDown(KeyCode.Mouse0) && threetwo_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))) + { + for (int x = 0; x < w; x++) + { + for (int y = 0; y < h; y++) + { + if (helyek[x,y].Equals("threetwo")) + { + 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) + { + player.transform.position = threetwo.transform.position; + jelenlegi_x = 3; + jelenlegi_y = 2; + akciopont = akciopont - 1; + Debug.Log(akciopont); + } + else + { + Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni"); + } + } + } + } + } + + if (Input.GetKeyDown(KeyCode.Mouse0) && onethree_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))) + { + for (int x = 0; x < w; x++) + { + for (int y = 0; y < h; y++) + { + if (helyek[x,y].Equals("onethree")) + { + 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) + { + player.transform.position = onethree.transform.position; + jelenlegi_x = 1; + jelenlegi_y = 3; + akciopont = akciopont - 1; + Debug.Log(akciopont); + } + else + { + Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni"); + } + } + } + } + } + + if (Input.GetKeyDown(KeyCode.Mouse0) && twothree_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))) + { + for (int x = 0; x < w; x++) + { + for (int y = 0; y < h; y++) + { + if (helyek[x,y].Equals("twothree")) + { + 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) + { + player.transform.position = twothree.transform.position; + jelenlegi_x = 2; + jelenlegi_y = 3; + akciopont = akciopont - 1; + Debug.Log(akciopont); + } + else + { + Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni"); + } + } + } + } + } + + if (Input.GetKeyDown(KeyCode.Mouse0) && threethree_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))) + { + for (int x = 0; x < w; x++) + { + for (int y = 0; y < h; y++) + { + if (helyek[x,y].Equals("threethree")) + { + 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) + { + player.transform.position = threethree.transform.position; + jelenlegi_x = 3; + jelenlegi_y = 3; + akciopont = akciopont - 1; + Debug.Log(akciopont); + } + else + { + Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni"); + } + } + } + } + } + + if (Input.GetKeyDown(KeyCode.Mouse0) && onefour_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))) + { + for (int x = 0; x < w; x++) + { + for (int y = 0; y < h; y++) + { + if (helyek[x,y].Equals("onefour")) + { + 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) + { + player.transform.position = onefour.transform.position; + jelenlegi_x = 1; + jelenlegi_y = 4; + akciopont = akciopont - 1; + Debug.Log(akciopont); + } + else + { + Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni"); + } + } + } + } + } + + if (Input.GetKeyDown(KeyCode.Mouse0) && twofour_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))) + { + for (int x = 0; x < w; x++) + { + for (int y = 0; y < h; y++) + { + if (helyek[x,y].Equals("twofour")) + { + 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) + { + player.transform.position = twofour.transform.position; + jelenlegi_x = 2; + jelenlegi_y = 4; + akciopont = akciopont - 1; + Debug.Log(akciopont); + } + else + { + Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni"); + } + } + } + } + } + + if (Input.GetKeyDown(KeyCode.Mouse0) && threefour_Collider.OverlapPoint(THE_Camera.ScreenToWorldPoint(Input.mousePosition))) + { + for (int x = 0; x < w; x++) + { + for (int y = 0; y < h; y++) + { + if (helyek[x,y].Equals("threefour")) + { + 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) + { + player.transform.position = threefour.transform.position; + jelenlegi_x = 3; + jelenlegi_y = 4; + akciopont = akciopont - 1; + Debug.Log(akciopont); + } + else + { + Debug.Log("Nincs elég akciópontod vagy nem 1 mezõn belül akarsz lépni"); + } + } + } + } + } + + } +} diff --git a/UserSettings/Layouts/CurrentMaximizeLayout.dwlt b/UserSettings/Layouts/CurrentMaximizeLayout.dwlt index c89c01e..2c4377f 100644 --- a/UserSettings/Layouts/CurrentMaximizeLayout.dwlt +++ b/UserSettings/Layouts/CurrentMaximizeLayout.dwlt @@ -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: 119 + controlID: 4302 --- !u!114 &2 MonoBehaviour: m_ObjectHideFlags: 52 @@ -45,10 +45,10 @@ MonoBehaviour: m_Tooltip: m_Pos: serializedVersion: 2 - x: 233 + x: 262 y: 19 - width: 1252 - height: 582 + width: 794 + height: 375 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: 1252, y: 561} + m_TargetSize: {x: 794, y: 354} m_TextureFilterMode: 0 m_TextureHideFlags: 61 m_RenderIMGUI: 1 @@ -74,10 +74,10 @@ MonoBehaviour: m_VRangeLocked: 0 hZoomLockedByDefault: 0 vZoomLockedByDefault: 0 - m_HBaseRangeMin: -626 - m_HBaseRangeMax: 626 - m_VBaseRangeMin: -280.5 - m_VBaseRangeMax: 280.5 + m_HBaseRangeMin: -397 + m_HBaseRangeMax: 397 + m_VBaseRangeMin: -177 + m_VBaseRangeMax: 177 m_HAllowExceedBaseRangeMin: 1 m_HAllowExceedBaseRangeMax: 1 m_VAllowExceedBaseRangeMin: 1 @@ -95,23 +95,23 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 21 - width: 1252 - height: 561 + width: 794 + height: 354 m_Scale: {x: 1, y: 1} - m_Translation: {x: 626, y: 280.5} + m_Translation: {x: 397, y: 177} m_MarginLeft: 0 m_MarginRight: 0 m_MarginTop: 0 m_MarginBottom: 0 m_LastShownAreaInsideMargins: serializedVersion: 2 - x: -626 - y: -280.5 - width: 1252 - height: 561 + x: -397 + y: -177 + width: 794 + height: 354 m_MinimalGUI: 1 m_defaultScale: 1 - m_LastWindowPixelSize: {x: 1252, y: 582} + m_LastWindowPixelSize: {x: 794, y: 375} m_ClearInEditMode: 1 m_NoCameraWarning: 1 m_LowResolutionForAspectRatios: 01000000000000000000 @@ -136,12 +136,12 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 0 - width: 1486 - height: 947 + width: 1057 + height: 635 m_MinSize: {x: 200, y: 200} m_MaxSize: {x: 16192, y: 16192} vertical: 1 - controlID: 120 + controlID: 4303 --- !u!114 &4 MonoBehaviour: m_ObjectHideFlags: 52 @@ -161,12 +161,12 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 0 - width: 1486 - height: 603 + width: 1057 + height: 396 m_MinSize: {x: 200, y: 100} m_MaxSize: {x: 16192, y: 8096} vertical: 0 - controlID: 121 + controlID: 4304 --- !u!114 &5 MonoBehaviour: m_ObjectHideFlags: 52 @@ -184,8 +184,8 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 0 - width: 232 - height: 603 + width: 261 + height: 396 m_MinSize: {x: 201, y: 221} m_MaxSize: {x: 4001, y: 4021} m_ActualView: {fileID: 6} @@ -215,18 +215,18 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 73 - width: 231 - height: 582 + width: 260 + height: 375 m_ViewDataDictionary: {fileID: 0} m_OverlayCanvas: m_LastAppliedPresetName: Default m_SaveData: [] m_SceneHierarchy: m_TreeViewState: - scrollPos: {x: 0, y: 0} + scrollPos: {x: 0, y: 560} m_SelectedIDs: m_LastClickedID: 0 - m_ExpandedIDs: 22fbffff2660000062640000d2640000cc650000 + m_ExpandedIDs: 98c4ffffb2c5fffff09100000c920000b69200000a9500006a950000a0950000e895000070960000a6960000ee960000029700002497000028970000e4970000e8970000 m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -265,10 +265,10 @@ MonoBehaviour: m_Children: [] m_Position: serializedVersion: 2 - x: 232 + x: 261 y: 0 - width: 1254 - height: 603 + width: 796 + height: 396 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: 232 + x: 261 y: 73 - width: 1252 - height: 582 + width: 794 + height: 375 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: -4.847948, y: -0.7561184, z: 0.70453775} + m_Target: {x: -8.970268, y: -1.6368613, z: 0.080547474} speed: 2 - m_Value: {x: -4.847948, y: -0.7561184, z: 0.70453775} + m_Value: {x: -8.970268, y: -1.6368613, z: 0.080547474} 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: 6.0895452 + m_Target: 2.236849 speed: 2 - m_Value: 6.0895452 + m_Value: 2.236849 m_Ortho: m_Target: 1 speed: 2 @@ -655,13 +655,13 @@ MonoBehaviour: m_Position: serializedVersion: 2 x: 0 - y: 603 - width: 1486 - height: 344 + y: 396 + width: 1057 + height: 239 m_MinSize: {x: 200, y: 100} m_MaxSize: {x: 16192, y: 8096} vertical: 0 - controlID: 71 + controlID: 4258 --- !u!114 &10 MonoBehaviour: m_ObjectHideFlags: 52 @@ -679,10 +679,10 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 0 - width: 759 - height: 344 - m_MinSize: {x: 230, y: 250} - m_MaxSize: {x: 10000, y: 10000} + width: 535 + height: 239 + 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: 676 - width: 758 - height: 323 + y: 469 + width: 534 + height: 218 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: 56660000 - m_LastClickedID: 26198 - m_ExpandedIDs: 000000004c660000 + m_SelectedIDs: a4910000 + m_LastClickedID: 37284 + m_ExpandedIDs: 000000009e91000000ca9a3bffffff7f m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -772,7 +772,7 @@ MonoBehaviour: scrollPos: {x: 0, y: 0} m_SelectedIDs: m_LastClickedID: 0 - m_ExpandedIDs: 000000004c660000 + m_ExpandedIDs: 000000009e91000000ca9a3bffffff7f m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -797,9 +797,9 @@ MonoBehaviour: m_Icon: {fileID: 0} m_ResourceFile: m_ListAreaState: - m_SelectedInstanceIDs: 945f0000 - m_LastClickedInstanceID: 24468 - m_HadKeyboardFocusLastEvent: 1 + m_SelectedInstanceIDs: 58baffff + m_LastClickedInstanceID: -17832 + m_HadKeyboardFocusLastEvent: 0 m_ExpandedInstanceIDs: c623000000000000 m_RenameOverlay: m_UserAcceptedRename: 0 @@ -843,12 +843,12 @@ MonoBehaviour: m_Children: [] m_Position: serializedVersion: 2 - x: 759 + x: 535 y: 0 - width: 727 - height: 344 - m_MinSize: {x: 100, y: 100} - m_MaxSize: {x: 4000, y: 4000} + width: 522 + height: 239 + 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: 759 - y: 676 - width: 725 - height: 323 + x: 535 + y: 469 + width: 520 + height: 218 m_ViewDataDictionary: {fileID: 0} m_OverlayCanvas: m_LastAppliedPresetName: Default @@ -897,10 +897,10 @@ MonoBehaviour: m_Children: [] m_Position: serializedVersion: 2 - x: 1486 + x: 1057 y: 0 - width: 434 - height: 947 + width: 309 + height: 635 m_MinSize: {x: 276, y: 71} m_MaxSize: {x: 4001, y: 4021} m_ActualView: {fileID: 15} @@ -928,10 +928,10 @@ MonoBehaviour: m_Tooltip: m_Pos: serializedVersion: 2 - x: 1486 + x: 1057 y: 73 - width: 433 - height: 926 + width: 308 + 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: 24468 + m_LastInspectedObjectInstanceID: -17832 m_LastVerticalScrollValue: 0 m_GlobalObjectId: m_InspectorMode: 0 diff --git a/UserSettings/Layouts/default-2021.dwlt b/UserSettings/Layouts/default-2021.dwlt index ffc3c53..df1cc84 100644 --- a/UserSettings/Layouts/default-2021.dwlt +++ b/UserSettings/Layouts/default-2021.dwlt @@ -16,10 +16,10 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 43 - width: 1920 - height: 997 + width: 1366 + height: 685 m_ShowMode: 4 - m_Title: Scene + m_Title: Hierarchy 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: 1920 - height: 997 + width: 1366 + height: 685 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: 1920 + width: 1366 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: 977 - width: 1920 + y: 665 + width: 1366 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: 1920 - height: 947 + width: 1366 + height: 635 m_MinSize: {x: 300, y: 200} m_MaxSize: {x: 24288, y: 16192} vertical: 0 - controlID: 59 + controlID: 5119 --- !u!114 &6 MonoBehaviour: m_ObjectHideFlags: 52 @@ -139,12 +139,12 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 0 - width: 1486 - height: 947 + width: 1057 + height: 635 m_MinSize: {x: 200, y: 200} m_MaxSize: {x: 16192, y: 16192} vertical: 1 - controlID: 60 + controlID: 5196 --- !u!114 &7 MonoBehaviour: m_ObjectHideFlags: 52 @@ -164,12 +164,12 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 0 - width: 1486 - height: 603 + width: 1057 + height: 396 m_MinSize: {x: 200, y: 100} m_MaxSize: {x: 16192, y: 8096} vertical: 0 - controlID: 61 + controlID: 5197 --- !u!114 &8 MonoBehaviour: m_ObjectHideFlags: 52 @@ -187,8 +187,8 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 0 - width: 232 - height: 603 + width: 261 + height: 396 m_MinSize: {x: 201, y: 221} m_MaxSize: {x: 4001, y: 4021} m_ActualView: {fileID: 15} @@ -211,10 +211,10 @@ MonoBehaviour: m_Children: [] m_Position: serializedVersion: 2 - x: 232 + x: 261 y: 0 - width: 1254 - height: 603 + width: 796 + height: 396 m_MinSize: {x: 202, y: 221} m_MaxSize: {x: 4002, y: 4021} m_ActualView: {fileID: 16} @@ -241,13 +241,13 @@ MonoBehaviour: m_Position: serializedVersion: 2 x: 0 - y: 603 - width: 1486 - height: 344 + y: 396 + width: 1057 + height: 239 m_MinSize: {x: 200, y: 100} m_MaxSize: {x: 16192, y: 8096} vertical: 0 - controlID: 18 + controlID: 5083 --- !u!114 &11 MonoBehaviour: m_ObjectHideFlags: 52 @@ -265,8 +265,8 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 0 - width: 759 - height: 344 + width: 533 + height: 239 m_MinSize: {x: 231, y: 271} m_MaxSize: {x: 10001, y: 10021} m_ActualView: {fileID: 17} @@ -289,12 +289,12 @@ MonoBehaviour: m_Children: [] m_Position: serializedVersion: 2 - x: 759 + x: 533 y: 0 - width: 727 - height: 344 - m_MinSize: {x: 100, y: 100} - m_MaxSize: {x: 4000, y: 4000} + width: 524 + height: 239 + m_MinSize: {x: 102, y: 121} + m_MaxSize: {x: 4002, y: 4021} m_ActualView: {fileID: 18} m_Panes: - {fileID: 18} @@ -315,10 +315,10 @@ MonoBehaviour: m_Children: [] m_Position: serializedVersion: 2 - x: 1486 + x: 1057 y: 0 - width: 434 - height: 947 + width: 309 + height: 635 m_MinSize: {x: 276, y: 71} m_MaxSize: {x: 4001, y: 4021} m_ActualView: {fileID: 19} @@ -346,10 +346,10 @@ MonoBehaviour: m_Tooltip: m_Pos: serializedVersion: 2 - x: 232 - y: 73 - width: 1252 - height: 582 + x: 262 + y: 19 + width: 794 + height: 375 m_ViewDataDictionary: {fileID: 0} m_OverlayCanvas: m_LastAppliedPresetName: Default @@ -360,11 +360,11 @@ MonoBehaviour: m_ShowGizmos: 0 m_TargetDisplay: 0 m_ClearColor: {r: 0, g: 0, b: 0, a: 0} - m_TargetSize: {x: 1252, y: 561} + m_TargetSize: {x: 794, y: 354} m_TextureFilterMode: 0 m_TextureHideFlags: 61 m_RenderIMGUI: 1 - m_EnterPlayModeBehavior: 0 + m_EnterPlayModeBehavior: 1 m_UseMipMap: 0 m_VSyncEnabled: 0 m_Gizmos: 0 @@ -375,10 +375,10 @@ MonoBehaviour: m_VRangeLocked: 0 hZoomLockedByDefault: 0 vZoomLockedByDefault: 0 - m_HBaseRangeMin: -626 - m_HBaseRangeMax: 626 - m_VBaseRangeMin: -280.5 - m_VBaseRangeMax: 280.5 + m_HBaseRangeMin: -397 + m_HBaseRangeMax: 397 + m_VBaseRangeMin: -177 + m_VBaseRangeMax: 177 m_HAllowExceedBaseRangeMin: 1 m_HAllowExceedBaseRangeMax: 1 m_VAllowExceedBaseRangeMin: 1 @@ -387,7 +387,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 @@ -396,23 +396,23 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 21 - width: 1252 - height: 561 + width: 794 + height: 354 m_Scale: {x: 1, y: 1} - m_Translation: {x: 626, y: 280.5} + m_Translation: {x: 397, y: 177} m_MarginLeft: 0 m_MarginRight: 0 m_MarginTop: 0 m_MarginBottom: 0 m_LastShownAreaInsideMargins: serializedVersion: 2 - x: -626 - y: -280.5 - width: 1252 - height: 561 + x: -397 + y: -177 + width: 794 + height: 354 m_MinimalGUI: 1 m_defaultScale: 1 - m_LastWindowPixelSize: {x: 1252, y: 582} + m_LastWindowPixelSize: {x: 794, y: 375} m_ClearInEditMode: 1 m_NoCameraWarning: 1 m_LowResolutionForAspectRatios: 01000000000000000000 @@ -440,8 +440,8 @@ MonoBehaviour: serializedVersion: 2 x: 0 y: 73 - width: 231 - height: 582 + width: 260 + height: 375 m_ViewDataDictionary: {fileID: 0} m_OverlayCanvas: m_LastAppliedPresetName: Default @@ -449,9 +449,9 @@ MonoBehaviour: m_SceneHierarchy: m_TreeViewState: scrollPos: {x: 0, y: 0} - m_SelectedIDs: 14200000 - m_LastClickedID: 0 - m_ExpandedIDs: 22fbffff + m_SelectedIDs: d4920000 + m_LastClickedID: 37588 + m_ExpandedIDs: 7890ffff98c4ffffb2c5fffff09100000c920000b6920000269400000a9500006a950000a0950000e895000070960000a6960000ee960000029700002497000028970000e4970000e8970000 m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -495,10 +495,10 @@ MonoBehaviour: m_Tooltip: m_Pos: serializedVersion: 2 - x: 232 + x: 261 y: 73 - width: 1252 - height: 582 + width: 794 + height: 375 m_ViewDataDictionary: {fileID: 0} m_OverlayCanvas: m_LastAppliedPresetName: Default @@ -755,9 +755,9 @@ MonoBehaviour: m_PlayAudio: 0 m_AudioPlay: 0 m_Position: - m_Target: {x: -0.35612154, y: -1.0795698, z: -0.06019483} + m_Target: {x: -1.2387518, y: -3.281419, z: -0.033249952} speed: 2 - m_Value: {x: -0.35612154, y: -1.0795698, z: -0.06019483} + m_Value: {x: -1.2387518, y: -3.281419, z: -0.033249952} 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: 11.6904125 + m_Target: 8.810466 speed: 2 - m_Value: 11.6904125 + m_Value: 8.810466 m_Ortho: m_Target: 1 speed: 2 @@ -856,9 +856,9 @@ MonoBehaviour: m_Pos: serializedVersion: 2 x: 0 - y: 676 - width: 758 - height: 323 + y: 469 + width: 532 + height: 218 m_ViewDataDictionary: {fileID: 0} m_OverlayCanvas: m_LastAppliedPresetName: Default @@ -884,14 +884,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: aa650000 - m_LastClickedID: 26026 - m_ExpandedIDs: 00000000a0650000 + m_SelectedIDs: a4910000 + m_LastClickedID: 37284 + m_ExpandedIDs: 000000009e91000000ca9a3bffffff7f m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -919,7 +919,7 @@ MonoBehaviour: scrollPos: {x: 0, y: 0} m_SelectedIDs: m_LastClickedID: 0 - m_ExpandedIDs: 00000000a0650000 + m_ExpandedIDs: 000000009e91000000ca9a3bffffff7f m_RenameOverlay: m_UserAcceptedRename: 0 m_Name: @@ -995,10 +995,10 @@ MonoBehaviour: m_Tooltip: m_Pos: serializedVersion: 2 - x: 759 - y: 676 - width: 725 - height: 323 + x: 533 + y: 469 + width: 522 + height: 218 m_ViewDataDictionary: {fileID: 0} m_OverlayCanvas: m_LastAppliedPresetName: Default @@ -1023,10 +1023,10 @@ MonoBehaviour: m_Tooltip: m_Pos: serializedVersion: 2 - x: 1486 + x: 1057 y: 73 - width: 433 - height: 926 + width: 308 + height: 614 m_ViewDataDictionary: {fileID: 0} m_OverlayCanvas: m_LastAppliedPresetName: Default @@ -1038,7 +1038,7 @@ MonoBehaviour: m_ControlHash: -371814159 m_PrefName: Preview_InspectorPreview m_LastInspectedObjectInstanceID: -1 - m_LastVerticalScrollValue: 0 + m_LastVerticalScrollValue: 897 m_GlobalObjectId: m_InspectorMode: 0 m_LockTracker: