trash tool
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c3bd7ed08f7b7d64f93259e5db1e007d
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="5 1 24 24"><path d="M13.64,21.97C13.14,22.21 12.54,22 12.31,21.5L10.13,16.76L7.62,18.78C7.45,18.92 7.24,19 7,19A1,1 0 0,1 6,18V3A1,1 0 0,1 7,2C7.24,2 7.47,2.09 7.64,2.23L7.65,2.22L19.14,11.86C19.57,12.22 19.62,12.85 19.27,13.27C19.12,13.45 18.91,13.57 18.7,13.61L15.54,14.23L17.74,18.96C18,19.46 17.76,20.05 17.26,20.28L13.64,21.97Z" style="stroke:black;stroke-width:2;fill:white"/></svg>
|
||||||
|
After Width: | Height: | Size: 653 B |
@@ -0,0 +1,55 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d0f05a0b5d7c9b241a26dbe09b647c63
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: a57477913897c46af95d590f580878bd, type: 3}
|
||||||
|
svgType: 2
|
||||||
|
texturedSpriteMeshType: 0
|
||||||
|
svgPixelsPerUnit: 100
|
||||||
|
gradientResolution: 64
|
||||||
|
alignment: 1
|
||||||
|
customPivot: {x: 0, y: 0}
|
||||||
|
generatePhysicsShape: 0
|
||||||
|
viewportOptions: 1
|
||||||
|
preserveViewport: 0
|
||||||
|
advancedMode: 0
|
||||||
|
predefinedResolutionIndex: 1
|
||||||
|
targetResolution: 1080
|
||||||
|
resolutionMultiplier: 1
|
||||||
|
stepDistance: 10
|
||||||
|
samplingStepDistance: 100
|
||||||
|
maxCordDeviationEnabled: 0
|
||||||
|
maxCordDeviation: 1
|
||||||
|
maxTangentAngleEnabled: 0
|
||||||
|
maxTangentAngle: 5
|
||||||
|
keepTextureAspectRatio: 1
|
||||||
|
textureSize: 256
|
||||||
|
textureWidth: 256
|
||||||
|
textureHeight: 256
|
||||||
|
wrapMode: 0
|
||||||
|
filterMode: 1
|
||||||
|
sampleCount: 4
|
||||||
|
preserveSVGImageAspect: 0
|
||||||
|
useSVGPixelsPerUnit: 0
|
||||||
|
spriteData:
|
||||||
|
TessellationDetail: 0
|
||||||
|
SpriteRect:
|
||||||
|
name:
|
||||||
|
originalName:
|
||||||
|
pivot: {x: 0, y: 0}
|
||||||
|
alignment: 0
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 0
|
||||||
|
height: 0
|
||||||
|
spriteID: 49bd17e9096cd0a429dde482a8537ac2
|
||||||
|
internalID: 0
|
||||||
|
PhysicsOutlines: []
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z" style="stroke:black;stroke-width:1;fill:white" /></svg>
|
||||||
|
After Width: | Height: | Size: 470 B |
@@ -0,0 +1,55 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 41b6be3f02726104888f2c62cdc89fdf
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: a57477913897c46af95d590f580878bd, type: 3}
|
||||||
|
svgType: 2
|
||||||
|
texturedSpriteMeshType: 0
|
||||||
|
svgPixelsPerUnit: 100
|
||||||
|
gradientResolution: 64
|
||||||
|
alignment: 0
|
||||||
|
customPivot: {x: 0, y: 0}
|
||||||
|
generatePhysicsShape: 0
|
||||||
|
viewportOptions: 1
|
||||||
|
preserveViewport: 0
|
||||||
|
advancedMode: 0
|
||||||
|
predefinedResolutionIndex: 1
|
||||||
|
targetResolution: 1080
|
||||||
|
resolutionMultiplier: 1
|
||||||
|
stepDistance: 10
|
||||||
|
samplingStepDistance: 100
|
||||||
|
maxCordDeviationEnabled: 0
|
||||||
|
maxCordDeviation: 1
|
||||||
|
maxTangentAngleEnabled: 0
|
||||||
|
maxTangentAngle: 5
|
||||||
|
keepTextureAspectRatio: 1
|
||||||
|
textureSize: 256
|
||||||
|
textureWidth: 256
|
||||||
|
textureHeight: 256
|
||||||
|
wrapMode: 0
|
||||||
|
filterMode: 1
|
||||||
|
sampleCount: 4
|
||||||
|
preserveSVGImageAspect: 0
|
||||||
|
useSVGPixelsPerUnit: 0
|
||||||
|
spriteData:
|
||||||
|
TessellationDetail: 0
|
||||||
|
SpriteRect:
|
||||||
|
name:
|
||||||
|
originalName:
|
||||||
|
pivot: {x: 0, y: 0}
|
||||||
|
alignment: 0
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 0
|
||||||
|
height: 0
|
||||||
|
spriteID: 7ac0cef56711db84da3043e2df1db919
|
||||||
|
internalID: 0
|
||||||
|
PhysicsOutlines: []
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M13.75,10.19L14.38,10.32L18.55,12.4C19.25,12.63 19.71,13.32 19.65,14.06V14.19L19.65,14.32L18.75,20.44C18.69,20.87 18.5,21.27 18.15,21.55C17.84,21.85 17.43,22 17,22H10.12C9.63,22 9.18,21.82 8.85,21.47L2.86,15.5L3.76,14.5C4,14.25 4.38,14.11 4.74,14.13H5.03L9,15V4.5A2,2 0 0,1 11,2.5A2,2 0 0,1 13,4.5V10.19H13.75Z" style="stroke:black;stroke-width:2;fill:white"/></svg>
|
||||||
|
After Width: | Height: | Size: 651 B |
@@ -0,0 +1,55 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d14431ce61c8d5748b32f4a3bcfd2994
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: a57477913897c46af95d590f580878bd, type: 3}
|
||||||
|
svgType: 2
|
||||||
|
texturedSpriteMeshType: 0
|
||||||
|
svgPixelsPerUnit: 100
|
||||||
|
gradientResolution: 64
|
||||||
|
alignment: 1
|
||||||
|
customPivot: {x: 0, y: 0}
|
||||||
|
generatePhysicsShape: 0
|
||||||
|
viewportOptions: 1
|
||||||
|
preserveViewport: 0
|
||||||
|
advancedMode: 0
|
||||||
|
predefinedResolutionIndex: 1
|
||||||
|
targetResolution: 1080
|
||||||
|
resolutionMultiplier: 1
|
||||||
|
stepDistance: 10
|
||||||
|
samplingStepDistance: 100
|
||||||
|
maxCordDeviationEnabled: 0
|
||||||
|
maxCordDeviation: 1
|
||||||
|
maxTangentAngleEnabled: 0
|
||||||
|
maxTangentAngle: 5
|
||||||
|
keepTextureAspectRatio: 1
|
||||||
|
textureSize: 256
|
||||||
|
textureWidth: 256
|
||||||
|
textureHeight: 256
|
||||||
|
wrapMode: 0
|
||||||
|
filterMode: 1
|
||||||
|
sampleCount: 4
|
||||||
|
preserveSVGImageAspect: 0
|
||||||
|
useSVGPixelsPerUnit: 0
|
||||||
|
spriteData:
|
||||||
|
TessellationDetail: 0
|
||||||
|
SpriteRect:
|
||||||
|
name:
|
||||||
|
originalName:
|
||||||
|
pivot: {x: 0, y: 0}
|
||||||
|
alignment: 0
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 0
|
||||||
|
height: 0
|
||||||
|
spriteID: edc7c3ad2b0d33d4ea0f92be66f1c3ac
|
||||||
|
internalID: 0
|
||||||
|
PhysicsOutlines: []
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 06136048e487def4dab770f595af7ac0
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7482c04d338ec1540a95ac19a43b5f41
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M20.37,8.91L19.37,10.64L7.24,3.64L8.24,1.91L11.28,3.66L12.64,3.29L16.97,5.79L17.34,7.16L20.37,8.91ZM6,19V7H11.07L18,11V19A2,2 0 0,1 16,21H8A2,2 0 0,1 6,19Z" style="stroke:black;stroke-width:1;fill:white" /></svg>
|
||||||
|
After Width: | Height: | Size: 497 B |
@@ -0,0 +1,55 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 2b0bec83cb4bdfa4082ea5a275e8ae55
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: a57477913897c46af95d590f580878bd, type: 3}
|
||||||
|
svgType: 4
|
||||||
|
texturedSpriteMeshType: 0
|
||||||
|
svgPixelsPerUnit: 100
|
||||||
|
gradientResolution: 64
|
||||||
|
alignment: 0
|
||||||
|
customPivot: {x: 0, y: 0}
|
||||||
|
generatePhysicsShape: 0
|
||||||
|
viewportOptions: 1
|
||||||
|
preserveViewport: 0
|
||||||
|
advancedMode: 0
|
||||||
|
predefinedResolutionIndex: 1
|
||||||
|
targetResolution: 1080
|
||||||
|
resolutionMultiplier: 1
|
||||||
|
stepDistance: 10
|
||||||
|
samplingStepDistance: 100
|
||||||
|
maxCordDeviationEnabled: 0
|
||||||
|
maxCordDeviation: 1
|
||||||
|
maxTangentAngleEnabled: 0
|
||||||
|
maxTangentAngle: 5
|
||||||
|
keepTextureAspectRatio: 1
|
||||||
|
textureSize: 256
|
||||||
|
textureWidth: 256
|
||||||
|
textureHeight: 256
|
||||||
|
wrapMode: 0
|
||||||
|
filterMode: 1
|
||||||
|
sampleCount: 4
|
||||||
|
preserveSVGImageAspect: 1
|
||||||
|
useSVGPixelsPerUnit: 0
|
||||||
|
spriteData:
|
||||||
|
TessellationDetail: 0
|
||||||
|
SpriteRect:
|
||||||
|
name:
|
||||||
|
originalName:
|
||||||
|
pivot: {x: 0, y: 0}
|
||||||
|
alignment: 0
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 0
|
||||||
|
height: 0
|
||||||
|
spriteID: 988cec3c3f3761a408fe798361b0becf
|
||||||
|
internalID: 0
|
||||||
|
PhysicsOutlines: []
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19ZM6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" fill="white" style="stroke:black;stroke-width:1;fill:white" /></svg>
|
||||||
|
After Width: | Height: | Size: 437 B |
@@ -0,0 +1,55 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ac6a92b2185049c489e96cdddf0efb50
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 11500000, guid: a57477913897c46af95d590f580878bd, type: 3}
|
||||||
|
svgType: 4
|
||||||
|
texturedSpriteMeshType: 0
|
||||||
|
svgPixelsPerUnit: 100
|
||||||
|
gradientResolution: 64
|
||||||
|
alignment: 0
|
||||||
|
customPivot: {x: 0, y: 0}
|
||||||
|
generatePhysicsShape: 0
|
||||||
|
viewportOptions: 1
|
||||||
|
preserveViewport: 0
|
||||||
|
advancedMode: 0
|
||||||
|
predefinedResolutionIndex: 1
|
||||||
|
targetResolution: 1080
|
||||||
|
resolutionMultiplier: 1
|
||||||
|
stepDistance: 10
|
||||||
|
samplingStepDistance: 100
|
||||||
|
maxCordDeviationEnabled: 0
|
||||||
|
maxCordDeviation: 1
|
||||||
|
maxTangentAngleEnabled: 0
|
||||||
|
maxTangentAngle: 5
|
||||||
|
keepTextureAspectRatio: 1
|
||||||
|
textureSize: 256
|
||||||
|
textureWidth: 256
|
||||||
|
textureHeight: 256
|
||||||
|
wrapMode: 0
|
||||||
|
filterMode: 1
|
||||||
|
sampleCount: 4
|
||||||
|
preserveSVGImageAspect: 1
|
||||||
|
useSVGPixelsPerUnit: 0
|
||||||
|
spriteData:
|
||||||
|
TessellationDetail: 0
|
||||||
|
SpriteRect:
|
||||||
|
name:
|
||||||
|
originalName:
|
||||||
|
pivot: {x: 0, y: 0}
|
||||||
|
alignment: 0
|
||||||
|
border: {x: 0, y: 0, z: 0, w: 0}
|
||||||
|
rect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 0
|
||||||
|
height: 0
|
||||||
|
spriteID: e2b516498d021984ea60cc316456b398
|
||||||
|
internalID: 0
|
||||||
|
PhysicsOutlines: []
|
||||||
@@ -205,6 +205,42 @@ Transform:
|
|||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 3
|
m_RootOrder: 3
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &186568831
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 186568832}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Moving Bar
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 0
|
||||||
|
--- !u!224 &186568832
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 186568831}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 8894090343327815917}
|
||||||
|
m_Father: {fileID: 431027840}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
m_AnchorMax: {x: 1, y: 0}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 0, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0}
|
||||||
--- !u!1 &297330683
|
--- !u!1 &297330683
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -327,6 +363,7 @@ RectTransform:
|
|||||||
m_LocalScale: {x: 0, y: 0, z: 0}
|
m_LocalScale: {x: 0, y: 0, z: 0}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 881209085}
|
- {fileID: 881209085}
|
||||||
|
- {fileID: 186568832}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 4
|
m_RootOrder: 4
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
@@ -348,6 +385,7 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
GateBar: {fileID: 881209084}
|
GateBar: {fileID: 881209084}
|
||||||
|
MovingBar: {fileID: 186568831}
|
||||||
UIGatePrefab: {fileID: 7325205278540948175, guid: eccdec2d2494caa4ba1b906d71a760f8, type: 3}
|
UIGatePrefab: {fileID: 7325205278540948175, guid: eccdec2d2494caa4ba1b906d71a760f8, type: 3}
|
||||||
--- !u!1 &519420028
|
--- !u!1 &519420028
|
||||||
GameObject:
|
GameObject:
|
||||||
@@ -518,6 +556,9 @@ MonoBehaviour:
|
|||||||
m_Script: {fileID: 11500000, guid: 11e573998e532eb42bdb43b80953d23f, type: 3}
|
m_Script: {fileID: 11500000, guid: 11e573998e532eb42bdb43b80953d23f, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
|
DefaultCursor: {fileID: 6192944022281365145, guid: d0f05a0b5d7c9b241a26dbe09b647c63, type: 3}
|
||||||
|
PointerCursor: {fileID: 6192944022281365145, guid: d14431ce61c8d5748b32f4a3bcfd2994, type: 3}
|
||||||
|
MoveCursor: {fileID: 6192944022281365145, guid: 41b6be3f02726104888f2c62cdc89fdf, type: 3}
|
||||||
--- !u!1 &543161298
|
--- !u!1 &543161298
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -670,7 +711,7 @@ GameObject:
|
|||||||
- component: {fileID: 881209087}
|
- component: {fileID: 881209087}
|
||||||
- component: {fileID: 881209086}
|
- component: {fileID: 881209086}
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: GateBar
|
m_Name: Gate Bar
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
@@ -827,3 +868,128 @@ Transform:
|
|||||||
m_Father: {fileID: 1741727034}
|
m_Father: {fileID: 1741727034}
|
||||||
m_RootOrder: 1
|
m_RootOrder: 1
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &3254705316304510337
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8894090343327815917}
|
||||||
|
- component: {fileID: 8982662505155081090}
|
||||||
|
- component: {fileID: 5045999820264220717}
|
||||||
|
- component: {fileID: 3254705316304510339}
|
||||||
|
- component: {fileID: 3254705316304510338}
|
||||||
|
m_Layer: 0
|
||||||
|
m_Name: DeleteTool
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!114 &3254705316304510338
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3254705316304510337}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 07b6ed78fbbf4124794530c3e8451329, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
openImage: {fileID: 1718401066980627502, guid: 2b0bec83cb4bdfa4082ea5a275e8ae55, type: 3}
|
||||||
|
--- !u!114 &3254705316304510339
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3254705316304510337}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Navigation:
|
||||||
|
m_Mode: 3
|
||||||
|
m_SelectOnUp: {fileID: 0}
|
||||||
|
m_SelectOnDown: {fileID: 0}
|
||||||
|
m_SelectOnLeft: {fileID: 0}
|
||||||
|
m_SelectOnRight: {fileID: 0}
|
||||||
|
m_Transition: 0
|
||||||
|
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: 5045999820264220717}
|
||||||
|
m_OnClick:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
--- !u!114 &5045999820264220717
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3254705316304510337}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: ef8b96895a0ec4ba685178a052544251, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 2100000, guid: 8d66e65c66e29504199ed664979682cd, type: 2}
|
||||||
|
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: 3286163911610860551, guid: ac6a92b2185049c489e96cdddf0efb50, type: 3}
|
||||||
|
m_PreserveAspect: 1
|
||||||
|
--- !u!224 &8894090343327815917
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3254705316304510337}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 186568832}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 1, y: 0}
|
||||||
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 100, y: 0}
|
||||||
|
m_Pivot: {x: 1, y: 0.5}
|
||||||
|
--- !u!222 &8982662505155081090
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 3254705316304510337}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ namespace UntitledLogicGame
|
|||||||
{
|
{
|
||||||
_line.positionCount = 2;
|
_line.positionCount = 2;
|
||||||
_line.SetPosition(0, StartAnchor.transform.position);
|
_line.SetPosition(0, StartAnchor.transform.position);
|
||||||
_line.SetPosition(1, MouseManager.MousePos);
|
_line.SetPosition(1, PointerManager.MousePos);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
namespace UntitledLogicGame
|
||||||
|
{
|
||||||
|
//public class TODO : MonoBehaviour
|
||||||
|
//{
|
||||||
|
// #region Unity Properties
|
||||||
|
|
||||||
|
// #endregion
|
||||||
|
|
||||||
|
// #region Public Properties
|
||||||
|
|
||||||
|
// #endregion
|
||||||
|
|
||||||
|
// #region Unity Methods
|
||||||
|
|
||||||
|
// #endregion
|
||||||
|
|
||||||
|
// #region Public Methods
|
||||||
|
|
||||||
|
// #endregion
|
||||||
|
|
||||||
|
// #region Private Methods
|
||||||
|
|
||||||
|
// #endregion
|
||||||
|
//}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1c4ef9ac47ea5c04ca839d0f92831e52
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -38,7 +38,7 @@ namespace UntitledLogicGame
|
|||||||
|
|
||||||
public Gate CurrentGate { get; set; }
|
public Gate CurrentGate { get; set; }
|
||||||
|
|
||||||
public MouseManager MouseManager { get; private set; }
|
public PointerManager MouseManager { get; private set; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ namespace UntitledLogicGame
|
|||||||
if (Instance != null)
|
if (Instance != null)
|
||||||
throw new InvalidOperationException("More than one GameManager in scene");
|
throw new InvalidOperationException("More than one GameManager in scene");
|
||||||
Instance = this;
|
Instance = this;
|
||||||
MouseManager = GetComponent<MouseManager>();
|
MouseManager = GetComponent<PointerManager>();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
@@ -70,7 +70,7 @@ namespace UntitledLogicGame
|
|||||||
public void CreateGate(Gate gatePrefab, Vector3 position)
|
public void CreateGate(Gate gatePrefab, Vector3 position)
|
||||||
{
|
{
|
||||||
var gate = Instantiate(gatePrefab, GatesGroup);
|
var gate = Instantiate(gatePrefab, GatesGroup);
|
||||||
gate.transform.position = MouseManager.MousePos - gate.Box.transform.position;
|
gate.transform.position = PointerManager.MousePos - gate.Box.transform.position;
|
||||||
MouseManager.DragGate(gate, true);
|
MouseManager.DragGate(gate, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +1,25 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using Unity.VectorGraphics;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace UntitledLogicGame
|
namespace UntitledLogicGame
|
||||||
{
|
{
|
||||||
public class MouseManager : MonoBehaviour
|
public class PointerManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
#region Static Properties
|
#region Static Properties
|
||||||
|
|
||||||
public static MouseManager Instance => GameManager.Instance.MouseManager;
|
public static PointerManager Instance => GameManager.Instance.MouseManager;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Unity Properties
|
#region Unity Properties
|
||||||
|
|
||||||
|
public Texture2D DefaultCursor;
|
||||||
|
public Texture2D PointerCursor;
|
||||||
|
public Texture2D MoveCursor;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Public Properties
|
#region Public Properties
|
||||||
@@ -23,26 +28,26 @@ namespace UntitledLogicGame
|
|||||||
|
|
||||||
public bool Interacting => _currentCable != null || _currentGate != null;
|
public bool Interacting => _currentCable != null || _currentGate != null;
|
||||||
|
|
||||||
|
public bool MovingObject => _currentGate != null;
|
||||||
|
|
||||||
public static bool Clicking => Input.GetButton("Fire1");
|
public static bool Clicking => Input.GetButton("Fire1");
|
||||||
|
|
||||||
|
public bool DeleteOnRelease { get; set; }
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Private Properties
|
#region Private Properties
|
||||||
|
|
||||||
private Cable _currentCable;
|
private Cable _currentCable;
|
||||||
private Gate _currentGate;
|
private Gate _currentGate;
|
||||||
private Vector3 _currentGateInitialPos;
|
private Vector3? _currentGateInitialPos;
|
||||||
private Vector3 _currentGateDelta;
|
private Vector3 _currentGateDelta;
|
||||||
|
private Texture2D _currentCursor;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Unity Methods
|
#region Unity Methods
|
||||||
|
|
||||||
private void Start()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private void FixedUpdate()
|
private void FixedUpdate()
|
||||||
{
|
{
|
||||||
var mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
var mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
||||||
@@ -82,29 +87,39 @@ namespace UntitledLogicGame
|
|||||||
}
|
}
|
||||||
else if(_currentGate != null)
|
else if(_currentGate != null)
|
||||||
{
|
{
|
||||||
foreach (var renderer in _currentGate.GetComponentsInChildren<SpriteRenderer>())
|
if (DeleteOnRelease)
|
||||||
{
|
{
|
||||||
renderer.sortingLayerName = "default";
|
Destroy(_currentGate.gameObject);
|
||||||
}
|
}
|
||||||
_currentGate.transform.position = _currentGate.transform.position.Round();
|
else
|
||||||
var currentBox = _currentGate.Box;
|
|
||||||
if (FindObjectsOfType<Gate>()
|
|
||||||
.Where(g => !g.Equals(_currentGate))
|
|
||||||
.Select(g => g.Box)
|
|
||||||
.Any(b => currentBox.IsTouching(b)))
|
|
||||||
{
|
{
|
||||||
// Collision with another gate
|
foreach (var renderer in _currentGate.GetComponentsInChildren<SpriteRenderer>())
|
||||||
if(_currentGateInitialPos == null)
|
|
||||||
{
|
{
|
||||||
Destroy(_currentGate.gameObject);
|
renderer.sortingLayerName = "default";
|
||||||
}
|
}
|
||||||
else
|
_currentGate.transform.position = _currentGate.transform.position.Round();
|
||||||
|
var currentBox = _currentGate.Box;
|
||||||
|
if (FindObjectsOfType<Gate>()
|
||||||
|
.Where(g => !g.Equals(_currentGate))
|
||||||
|
.Select(g => g.Box)
|
||||||
|
.Any(b => currentBox.IsTouching(b)))
|
||||||
{
|
{
|
||||||
_currentGate.transform.position = _currentGateInitialPos; // Reset pos
|
// Collision with another gate
|
||||||
|
if (_currentGateInitialPos == null)
|
||||||
|
{
|
||||||
|
Destroy(_currentGate.gameObject);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_currentGate.transform.position = _currentGateInitialPos.Value; // Reset pos
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_currentGate = null;
|
_currentGate = null;
|
||||||
|
DeleteOnRelease = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SetCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@@ -115,18 +130,49 @@ namespace UntitledLogicGame
|
|||||||
{
|
{
|
||||||
_currentGate = gate;
|
_currentGate = gate;
|
||||||
_currentGateDelta = MousePos - _currentGate.transform.position;
|
_currentGateDelta = MousePos - _currentGate.transform.position;
|
||||||
if(!created)
|
_currentGateInitialPos = created ? (Vector3?)null : _currentGate.transform.position;
|
||||||
_currentGateInitialPos = _currentGate.transform.position;
|
|
||||||
foreach (var renderer in _currentGate.GetComponentsInChildren<SpriteRenderer>())
|
foreach (var renderer in _currentGate.GetComponentsInChildren<SpriteRenderer>())
|
||||||
{
|
{
|
||||||
renderer.sortingLayerName = "moving";
|
renderer.sortingLayerName = "moving";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void RequestDelete()
|
||||||
|
{
|
||||||
|
if (_currentGate != null)
|
||||||
|
{
|
||||||
|
Destroy(_currentGate.gameObject);
|
||||||
|
_currentGate = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Private Methods
|
#region Private Methods
|
||||||
|
|
||||||
|
private void SetCursor()
|
||||||
|
{
|
||||||
|
Texture2D cursor = DefaultCursor;
|
||||||
|
Vector2 position = Vector2.zero;
|
||||||
|
|
||||||
|
if(!Interacting && GameManager.Instance.CurrentAnchor != null || Interacting && _currentCable != null)
|
||||||
|
{
|
||||||
|
cursor = PointerCursor;
|
||||||
|
position = new Vector2(cursor.width / 2f, 0f);
|
||||||
|
}
|
||||||
|
else if (!Interacting && GameManager.Instance.CurrentGate != null || Interacting && _currentGate != null)
|
||||||
|
{
|
||||||
|
cursor = MoveCursor;
|
||||||
|
position = new Vector2(cursor.width / 2f, cursor.height / 2f);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(_currentCursor != cursor)
|
||||||
|
{
|
||||||
|
Cursor.SetCursor(cursor, position, CursorMode.Auto);
|
||||||
|
_currentCursor = cursor;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using Unity.VectorGraphics;
|
||||||
|
using UnityEngine;
|
||||||
|
using UnityEngine.EventSystems;
|
||||||
|
|
||||||
|
namespace UntitledLogicGame.UI
|
||||||
|
{
|
||||||
|
public class UIDelete : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
|
||||||
|
{
|
||||||
|
#region Unity Properties
|
||||||
|
|
||||||
|
public SVGImage openImage;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Public Properties
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Private Properties
|
||||||
|
|
||||||
|
private SVGImage _image;
|
||||||
|
private Sprite _closedSprite;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Unity Methods
|
||||||
|
|
||||||
|
private void Start()
|
||||||
|
{
|
||||||
|
_image = GetComponent<SVGImage>();
|
||||||
|
_closedSprite = _image.sprite;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnPointerEnter(PointerEventData eventData)
|
||||||
|
{
|
||||||
|
_image.sprite = openImage.sprite;
|
||||||
|
PointerManager.Instance.DeleteOnRelease = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OnPointerExit(PointerEventData eventData)
|
||||||
|
{
|
||||||
|
_image.sprite = _closedSprite;
|
||||||
|
PointerManager.Instance.DeleteOnRelease = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Public Methods
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Private Methods
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 07b6ed78fbbf4124794530c3e8451329
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -11,6 +11,7 @@ namespace UntitledLogicGame.UI
|
|||||||
|
|
||||||
[Header("Components")]
|
[Header("Components")]
|
||||||
public GameObject GateBar;
|
public GameObject GateBar;
|
||||||
|
public GameObject MovingBar;
|
||||||
|
|
||||||
[Header("Prefabs")]
|
[Header("Prefabs")]
|
||||||
public UIGate UIGatePrefab;
|
public UIGate UIGatePrefab;
|
||||||
@@ -41,16 +42,18 @@ namespace UntitledLogicGame.UI
|
|||||||
uiGate.RectTransform.anchoredPosition = new Vector2(currentPos, 0);
|
uiGate.RectTransform.anchoredPosition = new Vector2(currentPos, 0);
|
||||||
currentPos += uiGate.RectTransform.sizeDelta.x;
|
currentPos += uiGate.RectTransform.sizeDelta.x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MovingBar.SetActive(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void FixedUpdate()
|
private void FixedUpdate()
|
||||||
{
|
{
|
||||||
if(MouseManager.Instance.Interacting != _lastMouseInteracting)
|
if(PointerManager.Instance.Interacting != _lastMouseInteracting)
|
||||||
{
|
{
|
||||||
//TODO animate go down
|
//TODO animate go down
|
||||||
GateBar.SetActive(!MouseManager.Instance.Interacting);
|
GateBar.SetActive(!PointerManager.Instance.Interacting);
|
||||||
_lastMouseInteracting = MouseManager.Instance.Interacting;
|
MovingBar.SetActive(PointerManager.Instance.MovingObject);
|
||||||
|
_lastMouseInteracting = PointerManager.Instance.Interacting;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@ TODO
|
|||||||
-(1) button gates
|
-(1) button gates
|
||||||
-(1) led gates
|
-(1) led gates
|
||||||
-(2) named anchors
|
-(2) named anchors
|
||||||
-(3) overlay to drag &drop new gates
|
|
||||||
-(3) same but to destroy gates
|
|
||||||
-(3) generic rect gates
|
-(3) generic rect gates
|
||||||
-(3) state gates
|
-(3) state gates
|
||||||
-(5) cable management
|
-(5) cable management
|
||||||
|
|||||||