diff --git a/Assets/Materials/ROTTENMEAT.mat b/Assets/Materials/ROTTENMEAT.mat new file mode 100644 index 0000000..ba0cad6 --- /dev/null +++ b/Assets/Materials/ROTTENMEAT.mat @@ -0,0 +1,77 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!21 &2100000 +Material: + serializedVersion: 6 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: ROTTENMEAT + 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} diff --git a/Assets/Materials/ROTTENMEAT.mat.meta b/Assets/Materials/ROTTENMEAT.mat.meta new file mode 100644 index 0000000..4115d7c --- /dev/null +++ b/Assets/Materials/ROTTENMEAT.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 396ea795e28623647971c724407e6211 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Prefabs/Moving/Four Med.prefab b/Assets/Prefabs/Moving/Four Med.prefab index 5358abc..3359ecb 100644 --- a/Assets/Prefabs/Moving/Four Med.prefab +++ b/Assets/Prefabs/Moving/Four Med.prefab @@ -110,6 +110,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 992985404997409621} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &1838588019358539029 GameObject: m_ObjectHideFlags: 0 @@ -220,6 +221,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 1838588019358539029} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &2898804552450333934 GameObject: m_ObjectHideFlags: 0 @@ -522,6 +524,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 3501896229398270785} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &5337212826336956548 GameObject: m_ObjectHideFlags: 0 @@ -725,3 +728,4 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 6080885810732294299} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} diff --git a/Assets/Prefabs/Moving/Four Seperated.prefab b/Assets/Prefabs/Moving/Four Seperated.prefab index 05b4f63..aa3714a 100644 --- a/Assets/Prefabs/Moving/Four Seperated.prefab +++ b/Assets/Prefabs/Moving/Four Seperated.prefab @@ -203,6 +203,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 3998205111013408114} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &4202038390682185978 GameObject: m_ObjectHideFlags: 0 @@ -508,6 +509,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 4989772145469751011} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &5565317366152616536 GameObject: m_ObjectHideFlags: 0 @@ -897,6 +899,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 8830762136531570441} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &9180557498668591541 GameObject: m_ObjectHideFlags: 0 @@ -1007,3 +1010,4 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 9180557498668591541} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} diff --git a/Assets/Prefabs/Moving/Four Thick.prefab b/Assets/Prefabs/Moving/Four Thick.prefab index 659fd23..f297da0 100644 --- a/Assets/Prefabs/Moving/Four Thick.prefab +++ b/Assets/Prefabs/Moving/Four Thick.prefab @@ -110,6 +110,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 3458624677133895880} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &3570707396209096919 GameObject: m_ObjectHideFlags: 0 @@ -313,6 +314,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 5405755162542111506} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &5799837134442839398 GameObject: m_ObjectHideFlags: 0 @@ -615,6 +617,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 7070615899916055878} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &8528673420657472262 GameObject: m_ObjectHideFlags: 0 @@ -725,3 +728,4 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 8528673420657472262} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} diff --git a/Assets/Prefabs/Moving/Four Thin.prefab b/Assets/Prefabs/Moving/Four Thin.prefab index 4cf017d..53f1292 100644 --- a/Assets/Prefabs/Moving/Four Thin.prefab +++ b/Assets/Prefabs/Moving/Four Thin.prefab @@ -110,6 +110,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 714468234725069295} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &1245788877316202048 GameObject: m_ObjectHideFlags: 0 @@ -412,6 +413,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 2373549887710126011} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &3797867047048862203 GameObject: m_ObjectHideFlags: 0 @@ -522,6 +524,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 3797867047048862203} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &7859014921423397429 GameObject: m_ObjectHideFlags: 0 @@ -632,6 +635,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 7859014921423397429} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &8314462717989605930 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/Moving/One Med.prefab b/Assets/Prefabs/Moving/One Med.prefab index d1333a8..64799ba 100644 --- a/Assets/Prefabs/Moving/One Med.prefab +++ b/Assets/Prefabs/Moving/One Med.prefab @@ -392,3 +392,4 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 9141818804918287969} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} diff --git a/Assets/Prefabs/Moving/One Seperated.prefab b/Assets/Prefabs/Moving/One Seperated.prefab index 0d42411..7ff6235 100644 --- a/Assets/Prefabs/Moving/One Seperated.prefab +++ b/Assets/Prefabs/Moving/One Seperated.prefab @@ -203,6 +203,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 1365680034780058874} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &2304334567999651801 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/Moving/One Thick.prefab b/Assets/Prefabs/Moving/One Thick.prefab index cd3a098..934f0ea 100644 --- a/Assets/Prefabs/Moving/One Thick.prefab +++ b/Assets/Prefabs/Moving/One Thick.prefab @@ -206,6 +206,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 5315656875779831730} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &6584276642715776184 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Prefabs/Moving/One Thin.prefab b/Assets/Prefabs/Moving/One Thin.prefab index 720d4df..0e24323 100644 --- a/Assets/Prefabs/Moving/One Thin.prefab +++ b/Assets/Prefabs/Moving/One Thin.prefab @@ -299,6 +299,7 @@ MonoBehaviour: zaxis: 0 speed: 20 block: {fileID: 7961322303990779386} + rotten: {fileID: 2100000, guid: 396ea795e28623647971c724407e6211, type: 2} --- !u!1 &8074531716470128101 GameObject: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/MovingBlock.cs b/Assets/Scripts/MovingBlock.cs index dd39bdc..fecab80 100644 --- a/Assets/Scripts/MovingBlock.cs +++ b/Assets/Scripts/MovingBlock.cs @@ -9,11 +9,13 @@ public class MovingBlock : MonoBehaviour public bool zaxis; public float speed; public GameObject block; + public Material rotten; bool moveXpos; bool moveZpos; Vector3 startPos; + MeshRenderer mr; void Start() { @@ -48,6 +50,12 @@ public class MovingBlock : MonoBehaviour moveZpos = false; } + if(!xaxis && !zaxis) + { + mr = this.GetComponent(); + mr.material = rotten; + } + } // Update is called once per frame diff --git a/Assets/Textures/ROTTENMEAT.png b/Assets/Textures/ROTTENMEAT.png new file mode 100644 index 0000000..d2babe0 Binary files /dev/null and b/Assets/Textures/ROTTENMEAT.png differ diff --git a/Assets/Textures/ROTTENMEAT.png.meta b/Assets/Textures/ROTTENMEAT.png.meta new file mode 100644 index 0000000..e02d73b --- /dev/null +++ b/Assets/Textures/ROTTENMEAT.png.meta @@ -0,0 +1,91 @@ +fileFormatVersion: 2 +guid: 90a47c5882375184e88e44f774e11074 +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 10 + 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 + streamingMipmaps: 0 + streamingMipmapsPriority: 0 + grayScaleToAlpha: 0 + generateCubemap: 6 + cubemapConvolution: 0 + seamlessCubemap: 0 + textureFormat: 1 + maxTextureSize: 2048 + textureSettings: + serializedVersion: 2 + filterMode: -1 + aniso: -1 + mipBias: -100 + wrapU: -1 + wrapV: -1 + wrapW: -1 + nPOTScale: 1 + lightmap: 0 + compressionQuality: 50 + spriteMode: 0 + spriteExtrude: 1 + spriteMeshType: 1 + alignment: 0 + spritePivot: {x: 0.5, y: 0.5} + spritePixelsToUnits: 100 + spriteBorder: {x: 0, y: 0, z: 0, w: 0} + spriteGenerateFallbackPhysicsShape: 1 + alphaUsage: 1 + alphaIsTransparency: 0 + spriteTessellationDetail: -1 + textureType: 0 + textureShape: 1 + singleChannelComponent: 0 + maxTextureSizeSet: 0 + compressionQualitySet: 0 + textureFormatSet: 0 + platformSettings: + - serializedVersion: 3 + buildTarget: DefaultTexturePlatform + maxTextureSize: 2048 + resizeAlgorithm: 0 + textureFormat: -1 + textureCompression: 1 + compressionQuality: 50 + crunchedCompression: 0 + allowsAlphaSplitting: 0 + overridden: 0 + androidETC2FallbackOverride: 0 + forceMaximumCompressionQuality_BC6H_BC7: 0 + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + spritePackingTag: + pSDRemoveMatte: 0 + pSDShowRemoveMatteOption: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/Textures/ROTTENMEAT.xcf b/Assets/Textures/ROTTENMEAT.xcf new file mode 100644 index 0000000..c78735c Binary files /dev/null and b/Assets/Textures/ROTTENMEAT.xcf differ diff --git a/Assets/Textures/ROTTENMEAT.xcf.meta b/Assets/Textures/ROTTENMEAT.xcf.meta new file mode 100644 index 0000000..105a0fd --- /dev/null +++ b/Assets/Textures/ROTTENMEAT.xcf.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 9a25e6e887dd87445a70c07276931f71 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: