mirror of
https://github.com/Steffo99/bleach-beach.git
synced 2024-12-04 19:04:19 +00:00
Add sea texture
Now the sea exists, apparently
This commit is contained in:
parent
e1b955bc85
commit
6ac652fa11
4 changed files with 235 additions and 13 deletions
115
Assets/Scenes/Game.unity
generated
115
Assets/Scenes/Game.unity
generated
|
@ -118,6 +118,81 @@ GameObject:
|
|||
m_CorrespondingSourceObject: {fileID: 1506768218425990, guid: 1cf703958a669d942a42326499701367,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 236105087}
|
||||
--- !u!1 &36874369
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 36874370}
|
||||
- component: {fileID: 36874371}
|
||||
m_Layer: 0
|
||||
m_Name: SeaTexture
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &36874370
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 36874369}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0.9, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1626175911}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!212 &36874371
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 36874369}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RenderingLayerMask: 4294967295
|
||||
m_Materials:
|
||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 0
|
||||
m_SelectedEditorRenderState: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 0
|
||||
m_Sprite: {fileID: 21300000, guid: 28558840dcfa2374db223ed9dad0f4c9, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 5, y: 5}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!1001 &236105087
|
||||
Prefab:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -303,6 +378,46 @@ Prefab:
|
|||
propertyPath: m_LinearDrag
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 61739251880371716, guid: 4dc0408b236da9847b1c799161bbd70a,
|
||||
type: 2}
|
||||
propertyPath: m_SpriteTilingProperty.pivot.x
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 61739251880371716, guid: 4dc0408b236da9847b1c799161bbd70a,
|
||||
type: 2}
|
||||
propertyPath: m_SpriteTilingProperty.pivot.y
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 61739251880371716, guid: 4dc0408b236da9847b1c799161bbd70a,
|
||||
type: 2}
|
||||
propertyPath: m_SpriteTilingProperty.oldSize.x
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 61739251880371716, guid: 4dc0408b236da9847b1c799161bbd70a,
|
||||
type: 2}
|
||||
propertyPath: m_SpriteTilingProperty.oldSize.y
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 61739251880371716, guid: 4dc0408b236da9847b1c799161bbd70a,
|
||||
type: 2}
|
||||
propertyPath: m_SpriteTilingProperty.newSize.x
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 61739251880371716, guid: 4dc0408b236da9847b1c799161bbd70a,
|
||||
type: 2}
|
||||
propertyPath: m_SpriteTilingProperty.newSize.y
|
||||
value: 5
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 61739251880371716, guid: 4dc0408b236da9847b1c799161bbd70a,
|
||||
type: 2}
|
||||
propertyPath: m_SpriteTilingProperty.adaptiveTilingThreshold
|
||||
value: 0.5
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 4dc0408b236da9847b1c799161bbd70a, type: 2}
|
||||
m_IsPrefabAsset: 0
|
||||
--- !u!4 &1626175911 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 4769752010558754, guid: 4dc0408b236da9847b1c799161bbd70a,
|
||||
type: 2}
|
||||
m_PrefabInternal: {fileID: 1151167808}
|
||||
|
|
|
@ -2,19 +2,27 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Tide : MonoBehaviour {
|
||||
|
||||
private BuoyancyEffector2D buoyancyEffector2D;
|
||||
public float speed = 0.01f;
|
||||
|
||||
void Start () {
|
||||
public class Tide : MonoBehaviour
|
||||
{
|
||||
public BuoyancyEffector2D buoyancyEffector2D;
|
||||
public SpriteRenderer spriterenderer;
|
||||
float speed = 0.01f;
|
||||
// Use this for initialization
|
||||
void Start()
|
||||
{
|
||||
buoyancyEffector2D = GetComponent<BuoyancyEffector2D>();
|
||||
spriterenderer = GetComponentInChildren<SpriteRenderer>();
|
||||
}
|
||||
|
||||
void Update () {
|
||||
if(buoyancyEffector2D.surfaceLevel > 0)
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
if (buoyancyEffector2D.surfaceLevel > 0)
|
||||
{
|
||||
buoyancyEffector2D.surfaceLevel = buoyancyEffector2D.surfaceLevel - (Time.deltaTime * speed);
|
||||
float y = (buoyancyEffector2D.surfaceLevel * 40) - 10;
|
||||
Vector3 vettore = new Vector3(0.0f, y , 0.0f);
|
||||
spriterenderer.transform.position = vettore;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
BIN
Assets/Sprites/mare.png
(Stored with Git LFS)
BIN
Assets/Sprites/mare.png
(Stored with Git LFS)
Binary file not shown.
99
Assets/Sprites/mare.png.meta
generated
Normal file
99
Assets/Sprites/mare.png.meta
generated
Normal file
|
@ -0,0 +1,99 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 28558840dcfa2374db223ed9dad0f4c9
|
||||
TextureImporter:
|
||||
fileIDToRecycleName: {}
|
||||
externalObjects: {}
|
||||
serializedVersion: 7
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
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: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 1
|
||||
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: 1
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 8
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
- serializedVersion: 2
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 3c22bb86000abe1418ff88ff50ab2922
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Reference in a new issue