Browse Source

Change license, add 3D UI, add font

master
excitedneon 3 years ago
parent
commit
e53c8cacd8
69 changed files with 3380 additions and 593 deletions
  1. +9
    -0
      Assets/Fonts.meta
  2. BIN
      Assets/Fonts/iosevka-medium.ttf
  3. +21
    -0
      Assets/Fonts/iosevka-medium.ttf.meta
  4. +9
    -0
      Assets/Models.meta
  5. BIN
      Assets/Models/Console.blend
  6. +89
    -0
      Assets/Models/Console.blend.meta
  7. BIN
      Assets/Models/Console.blend1
  8. +8
    -0
      Assets/Models/Console.blend1.meta
  9. +76
    -0
      Assets/Models/ConsoleBase.mat
  10. +9
    -0
      Assets/Models/ConsoleBase.mat.meta
  11. +76
    -0
      Assets/Models/ConsolePanel.mat
  12. +9
    -0
      Assets/Models/ConsolePanel.mat.meta
  13. +76
    -0
      Assets/Models/ConsoleScreen.mat
  14. +9
    -0
      Assets/Models/ConsoleScreen.mat.meta
  15. +29
    -0
      Assets/Models/GameTarget.renderTexture
  16. +9
    -0
      Assets/Models/GameTarget.renderTexture.meta
  17. +9
    -0
      Assets/Models/Materials.meta
  18. +76
    -0
      Assets/Models/Materials/Base.mat
  19. +9
    -0
      Assets/Models/Materials/Base.mat.meta
  20. +76
    -0
      Assets/Models/Materials/Material.mat
  21. +9
    -0
      Assets/Models/Materials/Material.mat.meta
  22. +76
    -0
      Assets/Models/Materials/Material_001.mat
  23. +9
    -0
      Assets/Models/Materials/Material_001.mat.meta
  24. +76
    -0
      Assets/Models/Materials/Panel.mat
  25. +9
    -0
      Assets/Models/Materials/Panel.mat.meta
  26. +76
    -0
      Assets/Models/Materials/Screen.mat
  27. +9
    -0
      Assets/Models/Materials/Screen.mat.meta
  28. BIN
      Assets/Models/Plug.blend
  29. +89
    -0
      Assets/Models/Plug.blend.meta
  30. BIN
      Assets/Models/Plug.blend1
  31. +8
    -0
      Assets/Models/Plug.blend1.meta
  32. +76
    -0
      Assets/Models/PlugMetal.mat
  33. +9
    -0
      Assets/Models/PlugMetal.mat.meta
  34. +76
    -0
      Assets/Models/PlugMetalInside.mat
  35. +9
    -0
      Assets/Models/PlugMetalInside.mat.meta
  36. BIN
      Assets/Models/UI.png
  37. +90
    -0
      Assets/Models/UI.png.meta
  38. +4
    -4
      Assets/Prefabs/Bot.prefab
  39. +3
    -2
      Assets/Prefabs/Detector.prefab
  40. +3
    -3
      Assets/Prefabs/Door.prefab
  41. +2
    -2
      Assets/Prefabs/Floor.prefab
  42. +2
    -2
      Assets/Prefabs/Generator.prefab
  43. +2
    -2
      Assets/Prefabs/LightRed.prefab
  44. +2
    -2
      Assets/Prefabs/LightYellow.prefab
  45. +2
    -2
      Assets/Prefabs/Wall.prefab
  46. +2
    -2
      Assets/Prefabs/WireHorizontal.prefab
  47. +2
    -2
      Assets/Prefabs/WireOmni.prefab
  48. +2
    -2
      Assets/Prefabs/WireVertical.prefab
  49. +829
    -507
      Assets/Scenes/MainScene.unity
  50. +16
    -3
      Assets/Scripts/AIBase.cs
  51. +17
    -2
      Assets/Scripts/Bot.cs
  52. +20
    -0
      Assets/Scripts/CameraZoomer.cs
  53. +12
    -0
      Assets/Scripts/CameraZoomer.cs.meta
  54. +21
    -6
      Assets/Scripts/ConnectionBoard.cs
  55. +29
    -12
      Assets/Scripts/Detector.cs
  56. +30
    -13
      Assets/Scripts/Door.cs
  57. +16
    -3
      Assets/Scripts/Globals.cs
  58. +19
    -3
      Assets/Scripts/MouseDrag.cs
  59. +17
    -1
      Assets/Scripts/SeekingAI.cs
  60. +17
    -2
      Assets/Scripts/SfxPlayer.cs
  61. +21
    -4
      Assets/Scripts/Toggleable.cs
  62. +20
    -3
      Assets/Scripts/World.cs
  63. +9
    -0
      Assets/Vectors.meta
  64. +342
    -0
      Assets/Vectors/UITemplate.svg
  65. +8
    -0
      Assets/Vectors/UITemplate.svg.meta
  66. +0
    -7
      LICENSE
  67. +675
    -0
      LICENSE.md
  68. +1
    -1
      ProjectSettings/TagManager.asset
  69. +15
    -1
      README.md

+ 9
- 0
Assets/Fonts.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: fbe4c6a8f28a1914097922c94d08719d
folderAsset: yes
timeCreated: 1501414787
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Fonts/iosevka-medium.ttf View File


+ 21
- 0
Assets/Fonts/iosevka-medium.ttf.meta View File

@@ -0,0 +1,21 @@
fileFormatVersion: 2
guid: 6b07e07cfbd58c8468acedeeee552db6
timeCreated: 1501414791
licenseType: Free
TrueTypeFontImporter:
serializedVersion: 4
fontSize: 16
forceTextureCase: -2
characterSpacing: 0
characterPadding: 1
includeFontData: 1
fontName: Iosevka
fontNames:
- Iosevka
fallbackFontReferences: []
customCharacters:
fontRenderingMode: 0
ascentCalculationMode: 1
userData:
assetBundleName:
assetBundleVariant:

+ 9
- 0
Assets/Models.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 78b612cb18462614a8e57150d40e1c9c
folderAsset: yes
timeCreated: 1501425869
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Models/Console.blend View File


+ 89
- 0
Assets/Models/Console.blend.meta View File

@@ -0,0 +1,89 @@
fileFormatVersion: 2
guid: cfcb2312d75662f4f846c969a17e40e2
timeCreated: 1501425869
licenseType: Free
ModelImporter:
serializedVersion: 21
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: Cube
7400000: Default Take
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 2
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
rootMotionBoneName:
rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1}
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Models/Console.blend1 View File


+ 8
- 0
Assets/Models/Console.blend1.meta View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4c050859c23b2694d82e8e889435730d
timeCreated: 1501426570
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

+ 76
- 0
Assets/Models/ConsoleBase.mat View File

@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: ConsoleBase
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 9
- 0
Assets/Models/ConsoleBase.mat.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 3467df51760ab234296879a97cb6f142
timeCreated: 1501425888
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

+ 76
- 0
Assets/Models/ConsolePanel.mat View File

@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: ConsolePanel
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 2800000, guid: 3e0203869ac6a7e4886998914b8adfff, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 9
- 0
Assets/Models/ConsolePanel.mat.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: bb1600761761fdf4aa6a2f29ba2437b2
timeCreated: 1501425888
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

+ 76
- 0
Assets/Models/ConsoleScreen.mat View File

@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: ConsoleScreen
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 8400000, guid: 305cded09ce2aff46a4cc4d321c670fe, type: 2}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 9
- 0
Assets/Models/ConsoleScreen.mat.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 986c29335efc6104aaaa2dfb26152cec
timeCreated: 1501425888
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

+ 29
- 0
Assets/Models/GameTarget.renderTexture View File

@@ -0,0 +1,29 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!84 &8400000
RenderTexture:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: GameTarget
m_ImageContentsHash:
serializedVersion: 2
Hash: 00000000000000000000000000000000
m_Width: 256
m_Height: 256
m_AntiAliasing: 1
m_DepthFormat: 2
m_ColorFormat: 0
m_MipMap: 0
m_GenerateMips: 1
m_SRGB: 0
m_TextureSettings:
serializedVersion: 2
m_FilterMode: 0
m_Aniso: 0
m_MipBias: 0
m_WrapU: 1
m_WrapV: 1
m_WrapW: 1
m_Dimension: 2
m_VolumeDepth: 1

+ 9
- 0
Assets/Models/GameTarget.renderTexture.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 305cded09ce2aff46a4cc4d321c670fe
timeCreated: 1501426456
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 8400000
userData:
assetBundleName:
assetBundleVariant:

+ 9
- 0
Assets/Models/Materials.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 2c1b7b3006dcb7e48bf1a5b19453ba32
folderAsset: yes
timeCreated: 1501426570
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

+ 76
- 0
Assets/Models/Materials/Base.mat View File

@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Base
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 9
- 0
Assets/Models/Materials/Base.mat.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 2c58638b41c5fa94fb145e121d2d8c9f
timeCreated: 1501426570
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

+ 76
- 0
Assets/Models/Materials/Material.mat View File

@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Material
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 9
- 0
Assets/Models/Materials/Material.mat.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 6ce839996f4c1904391b04d266496646
timeCreated: 1501426830
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

+ 76
- 0
Assets/Models/Materials/Material_001.mat View File

@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Material_001
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 9
- 0
Assets/Models/Materials/Material_001.mat.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: c11d6d133ac677140af3bb958a9ee601
timeCreated: 1501426831
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

+ 76
- 0
Assets/Models/Materials/Panel.mat View File

@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Panel
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 9
- 0
Assets/Models/Materials/Panel.mat.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: c44306dfb4879174eb9aefdb287f6051
timeCreated: 1501426630
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

+ 76
- 0
Assets/Models/Materials/Screen.mat View File

@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: Screen
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 9
- 0
Assets/Models/Materials/Screen.mat.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: d082363cf736adb42888acacc7e08353
timeCreated: 1501426636
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Models/Plug.blend View File


+ 89
- 0
Assets/Models/Plug.blend.meta View File

@@ -0,0 +1,89 @@
fileFormatVersion: 2
guid: b9d01707574fd3a418a85e4787eb781f
timeCreated: 1501425626
licenseType: Free
ModelImporter:
serializedVersion: 21
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: Cube
7400000: Default Take
9500000: //RootNode
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 2
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
rootMotionBoneName:
rootMotionBoneRotation: {x: 0, y: 0, z: 0, w: 1}
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Models/Plug.blend1 View File


+ 8
- 0
Assets/Models/Plug.blend1.meta View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 8d423bd79aecb824e9dafa1ad6587076
timeCreated: 1501426919
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

+ 76
- 0
Assets/Models/PlugMetal.mat View File

@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: PlugMetal
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.787
- _GlossyReflections: 1
- _Metallic: 0.262
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 9
- 0
Assets/Models/PlugMetal.mat.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 69623ff8170743a47b22f8709b9b3c5a
timeCreated: 1501425888
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

+ 76
- 0
Assets/Models/PlugMetalInside.mat View File

@@ -0,0 +1,76 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 0}
m_Name: PlugMetalInside
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 1
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0, g: 0, b: 0, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 9
- 0
Assets/Models/PlugMetalInside.mat.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: f5842c6be9fd43f45bf89e4582bbd044
timeCreated: 1501425888
licenseType: Free
NativeFormatImporter:
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

BIN
Assets/Models/UI.png View File

Before After
Width: 576  |  Height: 1088  |  Size: 75KB

+ 90
- 0
Assets/Models/UI.png.meta View File

@@ -0,0 +1,90 @@
fileFormatVersion: 2
guid: 3e0203869ac6a7e4886998914b8adfff
timeCreated: 1501423311
licenseType: Free
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 4
mipmaps:
mipMapMode: 0
enableMipMap: 1
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 2
aniso: 1
mipBias: -1
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePixelsToUnits: 180
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
platformSettings:
- buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
- buildTarget: Standalone
maxTextureSize: 2048
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
- buildTarget: WebGL
maxTextureSize: 2048
textureFormat: -1
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
spritePackingTag:
userData:
assetBundleName:
assetBundleVariant:

+ 4
- 4
Assets/Prefabs/Bot.prefab View File

@@ -20,7 +20,7 @@ GameObject:
m_Component:
- component: {fileID: 4390898159867308}
- component: {fileID: 114878120924473770}
m_Layer: 0
m_Layer: 8
m_Name: Bot
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -36,13 +36,13 @@ GameObject:
m_Component:
- component: {fileID: 4585489270037766}
- component: {fileID: 212783384365336190}
m_Layer: 0
m_Layer: 8
m_Name: Notifier
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
m_IsActive: 1
--- !u!1 &1755474742073346
GameObject:
m_ObjectHideFlags: 0
@@ -52,7 +52,7 @@ GameObject:
m_Component:
- component: {fileID: 4836278633985252}
- component: {fileID: 212674960960225464}
m_Layer: 0
m_Layer: 8
m_Name: Sprite
m_TagString: Untagged
m_Icon: {fileID: 0}


+ 3
- 2
Assets/Prefabs/Detector.prefab View File

@@ -20,7 +20,7 @@ GameObject:
m_Component:
- component: {fileID: 4511265515938946}
- component: {fileID: 114304558220806838}
m_Layer: 0
m_Layer: 8
m_Name: Detector
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -36,7 +36,7 @@ GameObject:
m_Component:
- component: {fileID: 4960636890577264}
- component: {fileID: 212858125220767858}
m_Layer: 0
m_Layer: 8
m_Name: Tileset_6
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -81,6 +81,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 512173ba928d19a4babf6fc9e5ab3f5b, type: 3}
m_Name:
m_EditorClassIdentifier:
toggle: 0
--- !u!212 &212858125220767858
SpriteRenderer:
m_ObjectHideFlags: 1


+ 3
- 3
Assets/Prefabs/Door.prefab View File

@@ -20,7 +20,7 @@ GameObject:
m_Component:
- component: {fileID: 4943805729970068}
- component: {fileID: 212918950437413934}
m_Layer: 0
m_Layer: 8
m_Name: Tileset_5
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -36,7 +36,7 @@ GameObject:
m_Component:
- component: {fileID: 4911131632168434}
- component: {fileID: 212525139699266850}
m_Layer: 0
m_Layer: 8
m_Name: Tileset_0
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -52,7 +52,7 @@ GameObject:
m_Component:
- component: {fileID: 4171905168991448}
- component: {fileID: 114245550166855644}
m_Layer: 0
m_Layer: 8
m_Name: Door
m_TagString: Untagged
m_Icon: {fileID: 0}


+ 2
- 2
Assets/Prefabs/Floor.prefab View File

@@ -19,7 +19,7 @@ GameObject:
serializedVersion: 5
m_Component:
- component: {fileID: 4741432208927178}
m_Layer: 0
m_Layer: 8
m_Name: Floor
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -35,7 +35,7 @@ GameObject:
m_Component:
- component: {fileID: 4944453132493762}
- component: {fileID: 212346550166618126}
m_Layer: 0
m_Layer: 8
m_Name: Tileset_0
m_TagString: Untagged
m_Icon: {fileID: 0}


+ 2
- 2
Assets/Prefabs/Generator.prefab View File

@@ -19,7 +19,7 @@ GameObject:
serializedVersion: 5
m_Component:
- component: {fileID: 4947755609977218}
m_Layer: 0
m_Layer: 8
m_Name: Generator
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -35,7 +35,7 @@ GameObject:
m_Component:
- component: {fileID: 4376664735309786}
- component: {fileID: 212411718828481202}
m_Layer: 0
m_Layer: 8
m_Name: Tileset_2
m_TagString: Untagged
m_Icon: {fileID: 0}


+ 2
- 2
Assets/Prefabs/LightRed.prefab View File

@@ -20,7 +20,7 @@ GameObject:
m_Component:
- component: {fileID: 4689650096540708}
- component: {fileID: 212833966830189256}
m_Layer: 0
m_Layer: 8
m_Name: Tileset_3
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -35,7 +35,7 @@ GameObject:
serializedVersion: 5
m_Component:
- component: {fileID: 4838826715138088}
m_Layer: 0
m_Layer: 8
m_Name: LightRed
m_TagString: Untagged
m_Icon: {fileID: 0}


+ 2
- 2
Assets/Prefabs/LightYellow.prefab View File

@@ -19,7 +19,7 @@ GameObject:
serializedVersion: 5
m_Component:
- component: {fileID: 4617460359275654}
m_Layer: 0
m_Layer: 8
m_Name: LightYellow
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -35,7 +35,7 @@ GameObject:
m_Component:
- component: {fileID: 4186783352545178}
- component: {fileID: 212815260490021250}
m_Layer: 0
m_Layer: 8
m_Name: Tileset_4
m_TagString: Untagged
m_Icon: {fileID: 0}


+ 2
- 2
Assets/Prefabs/Wall.prefab View File

@@ -20,7 +20,7 @@ GameObject:
m_Component:
- component: {fileID: 4102714231305464}
- component: {fileID: 212144444820636964}
m_Layer: 0
m_Layer: 8
m_Name: Tileset_1
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -35,7 +35,7 @@ GameObject:
serializedVersion: 5
m_Component:
- component: {fileID: 4272833347602726}
m_Layer: 0
m_Layer: 8
m_Name: Wall
m_TagString: Untagged
m_Icon: {fileID: 0}


+ 2
- 2
Assets/Prefabs/WireHorizontal.prefab View File

@@ -20,7 +20,7 @@ GameObject:
m_Component:
- component: {fileID: 4830200487740072}
- component: {fileID: 212575126528126986}
m_Layer: 0
m_Layer: 8
m_Name: Tileset_7
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -35,7 +35,7 @@ GameObject:
serializedVersion: 5
m_Component:
- component: {fileID: 4541405816274712}
m_Layer: 0
m_Layer: 8
m_Name: WireHorizontal
m_TagString: Untagged
m_Icon: {fileID: 0}


+ 2
- 2
Assets/Prefabs/WireOmni.prefab View File

@@ -20,7 +20,7 @@ GameObject:
m_Component:
- component: {fileID: 4473228614794890}
- component: {fileID: 212366187036577242}
m_Layer: 0
m_Layer: 8
m_Name: Tileset_9
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -35,7 +35,7 @@ GameObject:
serializedVersion: 5
m_Component:
- component: {fileID: 4015735901519106}
m_Layer: 0
m_Layer: 8
m_Name: WireOmni
m_TagString: Untagged
m_Icon: {fileID: 0}


+ 2
- 2
Assets/Prefabs/WireVertical.prefab View File

@@ -20,7 +20,7 @@ GameObject:
m_Component:
- component: {fileID: 4730142043106138}
- component: {fileID: 212072542127672410}
m_Layer: 0
m_Layer: 8
m_Name: Tileset_8
m_TagString: Untagged
m_Icon: {fileID: 0}
@@ -35,7 +35,7 @@ GameObject:
serializedVersion: 5
m_Component:
- component: {fileID: 4592890440623230}
m_Layer: 0
m_Layer: 8
m_Name: WireVertical
m_TagString: Untagged
m_Icon: {fileID: 0}


+ 829
- 507
Assets/Scenes/MainScene.unity
File diff suppressed because it is too large
View File


+ 16
- 3
Assets/Scripts/AIBase.cs View File

@@ -1,6 +1,19 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/* AI-Bot Problem is a puzzle game where you switch AIs between bots.
* Copyright (C) 2017 Jens Pitkänen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

namespace AIBotProblem {
public enum AIType {


+ 17
- 2
Assets/Scripts/Bot.cs View File

@@ -1,5 +1,20 @@
using System.Collections;
using System.Collections.Generic;
/* AI-Bot Problem is a puzzle game where you switch AIs between bots.
* Copyright (C) 2017 Jens Pitkänen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

using UnityEngine;

namespace AIBotProblem {


+ 20
- 0
Assets/Scripts/CameraZoomer.cs View File

@@ -0,0 +1,20 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace AIBotProblem {
public class CameraZoomer : MonoBehaviour {
public Camera cam;

private float zoomLevel = -3;

void Update() {
zoomLevel = Mathf.Clamp(zoomLevel + Input.GetAxis("Mouse ScrollWheel"), -5, 1);
cam.orthographicSize = GetMultiplier();
}

public float GetMultiplier() {
return Mathf.Pow(2, -zoomLevel);
}
}
}

+ 12
- 0
Assets/Scripts/CameraZoomer.cs.meta View File

@@ -0,0 +1,12 @@
fileFormatVersion: 2
guid: 97e9fa0a26457094aa3f9cfd17bc20e8
timeCreated: 1501428357
licenseType: Free
MonoImporter:
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

+ 21
- 6
Assets/Scripts/ConnectionBoard.cs View File

@@ -1,4 +1,20 @@
using System.Collections;
/* AI-Bot Problem is a puzzle game where you switch AIs between bots.
* Copyright (C) 2017 Jens Pitkänen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

using System.Collections.Generic;
using UnityEngine;

@@ -8,7 +24,6 @@ namespace AIBotProblem {
public SfxPlayer plugOutSfx;
public GameObject linePrefab;
public int inputCount = 6;
public RectTransform[] botButtons;

private List<Bot> bots;
private int lastNum = -1;
@@ -37,7 +52,7 @@ namespace AIBotProblem {
bots[num].hoverEffect.SetActive(true);
}
if (Input.GetButtonDown("Interact")) {
Click(num + (isIn ? 0 : 6));
Click(num + (isIn ? 0 : inputCount));
}
}
@@ -109,8 +124,8 @@ namespace AIBotProblem {
}
int index = GetIndexFor(line.GetPosition(0));
createdLines[index] = null;
lastIn = index < 6;
lastNum = index % 6;
lastIn = index < inputCount;
lastNum = index % inputCount;
if (isIn) {
bots[num].aiType = AIType.Dead;
} else {
@@ -132,7 +147,7 @@ namespace AIBotProblem {
if (child.name.StartsWith("In")) {
return int.Parse(child.name.Substring(2));
} else if (child.name.StartsWith("Out")) {
return int.Parse(child.name.Substring(3)) + 6;
return int.Parse(child.name.Substring(3)) + inputCount;
}
}
}


+ 29
- 12
Assets/Scripts/Detector.cs View File

@@ -1,17 +1,34 @@
using System.Collections;
using System.Collections.Generic;
/* AI-Bot Problem is a puzzle game where you switch AIs between bots.
* Copyright (C) 2017 Jens Pitkänen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

using UnityEngine;

public class Detector : Toggleable {
void Update() {
if (toggle) {
Vector3 scale = transform.localScale;
scale = Vector3.Lerp(scale, new Vector3(1.25f, 1.25f, 1.25f), 0.4f);
transform.localScale = scale;
} else {
Vector3 scale = transform.localScale;
scale = Vector3.Lerp(scale, new Vector3(1f, 1f, 1f), 0.6f);
transform.localScale = scale;
namespace AIBotProblem {
public class Detector : Toggleable {
void Update() {
if (toggle) {
Vector3 scale = transform.localScale;
scale = Vector3.Lerp(scale, new Vector3(1.25f, 1.25f, 1.25f), 0.4f);
transform.localScale = scale;
} else {
Vector3 scale = transform.localScale;
scale = Vector3.Lerp(scale, new Vector3(1f, 1f, 1f), 0.6f);
transform.localScale = scale;
}
}
}
}

+ 30
- 13
Assets/Scripts/Door.cs View File

@@ -1,19 +1,36 @@
using System.Collections;
using System.Collections.Generic;
/* AI-Bot Problem is a puzzle game where you switch AIs between bots.
* Copyright (C) 2017 Jens Pitkänen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

using UnityEngine;

public class Door : Toggleable {
public Transform door;
namespace AIBotProblem {
public class Door : Toggleable {
public Transform door;

void Update() {
if (toggle) {
Vector3 pos = door.localPosition;
pos.z = Mathf.Lerp(pos.z, 1.1f, 0.5f);
door.localPosition = pos;
} else {
Vector3 pos = door.localPosition;
pos.z = Mathf.Lerp(pos.z, 0, 0.5f);
door.localPosition = pos;
void Update() {
if (toggle) {
Vector3 pos = door.localPosition;
pos.z = Mathf.Lerp(pos.z, 1.1f, 0.5f);
door.localPosition = pos;
} else {
Vector3 pos = door.localPosition;
pos.z = Mathf.Lerp(pos.z, 0, 0.5f);
door.localPosition = pos;
}
}
}
}

+ 16
- 3
Assets/Scripts/Globals.cs View File

@@ -1,6 +1,19 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/* AI-Bot Problem is a puzzle game where you switch AIs between bots.
* Copyright (C) 2017 Jens Pitkänen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

namespace AIBotProblem {
public static class Globals {


+ 19
- 3
Assets/Scripts/MouseDrag.cs View File

@@ -1,14 +1,30 @@
using System.Collections;
using System.Collections.Generic;
/* AI-Bot Problem is a puzzle game where you switch AIs between bots.
* Copyright (C) 2017 Jens Pitkänen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

using UnityEngine;

namespace AIBotProblem {
public class MouseDrag : MonoBehaviour {
public CameraZoomer cameraZoomer;
public float speed = 1;

void Update() {
if (Input.GetButton("Interact")) {
Vector3 movement = new Vector3(Input.GetAxis("Mouse X"), Input.GetAxis("Mouse Y")) * speed;
Vector3 movement = new Vector3(Input.GetAxis("Mouse X"), Input.GetAxis("Mouse Y")) * speed * cameraZoomer.GetMultiplier();
transform.localPosition = transform.localPosition + movement;
}
}


+ 17
- 1
Assets/Scripts/SeekingAI.cs View File

@@ -1,4 +1,20 @@
using System.Collections;
/* AI-Bot Problem is a puzzle game where you switch AIs between bots.
* Copyright (C) 2017 Jens Pitkänen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

using System.Collections.Generic;
using UnityEngine;



+ 17
- 2
Assets/Scripts/SfxPlayer.cs View File

@@ -1,5 +1,20 @@
using System.Collections;
using System.Collections.Generic;
/* AI-Bot Problem is a puzzle game where you switch AIs between bots.
* Copyright (C) 2017 Jens Pitkänen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

using UnityEngine;

namespace AIBotProblem {


+ 21
- 4
Assets/Scripts/Toggleable.cs View File

@@ -1,7 +1,24 @@
using System.Collections;
using System.Collections.Generic;
/* AI-Bot Problem is a puzzle game where you switch AIs between bots.
* Copyright (C) 2017 Jens Pitkänen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

using UnityEngine;

public class Toggleable : MonoBehaviour {
public bool toggle = false;
namespace AIBotProblem {
public class Toggleable : MonoBehaviour {
public bool toggle = false;
}
}

+ 20
- 3
Assets/Scripts/World.cs View File

@@ -1,4 +1,20 @@
using System.Collections;
/* AI-Bot Problem is a puzzle game where you switch AIs between bots.
* Copyright (C) 2017 Jens Pitkänen
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

using System.Collections.Generic;
using UnityEngine;

@@ -70,7 +86,7 @@ namespace AIBotProblem {

public ConnectionBoard connectionBoard;

private int currentLevel = 4;
private int currentLevel = 0;
private Dictionary<PathDesc, List<Vector2>> cachedPaths = new Dictionary<PathDesc, List<Vector2>>();
private WorldTile[] grid;
private bool[] powerGrid;
@@ -165,7 +181,8 @@ namespace AIBotProblem {
}
// This check makes the void tiles not appear graphically (while still being technically floors)
if (cell != 'v') {
GameObject tile = Instantiate(tilePrefabs[(int)grid[x + y * width]], transform);
GameObject tile = Instantiate(tilePrefabs[(int)grid[x + y * width]]);
tile.transform.parent = transform;
tile.transform.localPosition = new Vector3(x, y);
if (cell == 'd') {
doors[x + y * width] = tile.GetComponent<Door>();


+ 9
- 0
Assets/Vectors.meta View File

@@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 73d5c701d20217d4fbf1c26c8ed947a9
folderAsset: yes
timeCreated: 1501423311
licenseType: Free
DefaultImporter:
userData:
assetBundleName:
assetBundleVariant:

+ 342
- 0
Assets/Vectors/UITemplate.svg View File

@@ -0,0 +1,342 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="512"
height="1024"
viewBox="0 0 512.00001 1024"
id="svg2"
version="1.1"
inkscape:version="0.91 r13725"
sodipodi:docname="UITemplate.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.7"
inkscape:cx="138.12547"
inkscape:cy="508.07454"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="true"
units="px"
inkscape:window-width="1920"
inkscape:window-height="1017"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1">
<inkscape:grid
type="xygrid"
id="grid3336"
spacingx="16"