Server authoritive controls
This commit is contained in:
8
Assets/Prefabs/Level1.meta
Normal file
8
Assets/Prefabs/Level1.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cd4107c0e89b4d3b4abe9b1ad7f4a9c9
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
367
Assets/Prefabs/Level1/pushbox.prefab
Normal file
367
Assets/Prefabs/Level1/pushbox.prefab
Normal file
@@ -0,0 +1,367 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &3174570623818630659
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3174570623818630658}
|
||||
- component: {fileID: 3174570623818630656}
|
||||
- component: {fileID: 3174570623818630657}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3174570623818630658
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3174570623818630659}
|
||||
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: 3174570624742474477}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &3174570623818630656
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3174570623818630659}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &3174570623818630657
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3174570623818630659}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 35
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: 2
|
||||
--- !u!1 &3174570624742474478
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3174570624742474477}
|
||||
- component: {fileID: 3174570624742474483}
|
||||
- component: {fileID: 3174570624742474476}
|
||||
m_Layer: 5
|
||||
m_Name: Canvas
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &3174570624742474477
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3174570624742474478}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.029679038, y: 0.03849614, z: 0.013566297}
|
||||
m_Children:
|
||||
- {fileID: 3174570623818630658}
|
||||
m_Father: {fileID: 3174570624901484319}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0.0000020864, y: -0.0000020296}
|
||||
m_SizeDelta: {x: 50, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!223 &3174570624742474483
|
||||
Canvas:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3174570624742474478}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_RenderMode: 2
|
||||
m_Camera: {fileID: 0}
|
||||
m_PlaneDistance: 100
|
||||
m_PixelPerfect: 0
|
||||
m_ReceivesEvents: 1
|
||||
m_OverrideSorting: 0
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 6
|
||||
m_TargetDisplay: 0
|
||||
--- !u!114 &3174570624742474476
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3174570624742474478}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_UiScaleMode: 0
|
||||
m_ReferencePixelsPerUnit: 100
|
||||
m_ScaleFactor: 1
|
||||
m_ReferenceResolution: {x: 800, y: 600}
|
||||
m_ScreenMatchMode: 0
|
||||
m_MatchWidthOrHeight: 0
|
||||
m_PhysicalUnit: 3
|
||||
m_FallbackScreenDPI: 96
|
||||
m_DefaultSpriteDPI: 96
|
||||
m_DynamicPixelsPerUnit: 1
|
||||
m_PresetInfoIsWorld: 0
|
||||
--- !u!1 &3174570624901484312
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3174570624901484319}
|
||||
- component: {fileID: 3174570624901484316}
|
||||
- component: {fileID: 3174570624901484317}
|
||||
- component: {fileID: 3174570624901484318}
|
||||
- component: {fileID: 3174570624901484387}
|
||||
- component: {fileID: 3174570624901484385}
|
||||
- component: {fileID: 3174570624901484386}
|
||||
m_Layer: 8
|
||||
m_Name: pushbox
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &3174570624901484319
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3174570624901484312}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -1.302608, y: -3.5627096, z: 0}
|
||||
m_LocalScale: {x: 0.45710027, y: 0.35240662, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 3174570624742474477}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!212 &3174570624901484316
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3174570624901484312}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 0
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 3
|
||||
m_Sprite: {fileID: 21300000, guid: e135ed1e773a1e046a13ebb09c556296, type: 3}
|
||||
m_Color: {r: 0.6509434, g: 0.0849272, b: 0.07983268, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 2.25, y: 2.25}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!61 &3174570624901484317
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3174570624901484312}
|
||||
m_Enabled: 1
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_UsedByComposite: 0
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
oldSize: {x: 2.25, y: 2.25}
|
||||
newSize: {x: 2.25, y: 2.25}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 2.25, y: 2.25}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!50 &3174570624901484318
|
||||
Rigidbody2D:
|
||||
serializedVersion: 4
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3174570624901484312}
|
||||
m_BodyType: 0
|
||||
m_Simulated: 1
|
||||
m_UseFullKinematicContacts: 0
|
||||
m_UseAutoMass: 0
|
||||
m_Mass: 2
|
||||
m_LinearDrag: 0
|
||||
m_AngularDrag: 0
|
||||
m_GravityScale: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_Interpolate: 0
|
||||
m_SleepingMode: 1
|
||||
m_CollisionDetection: 0
|
||||
m_Constraints: 6
|
||||
--- !u!114 &3174570624901484387
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3174570624901484312}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 95601679d599a9fd8a2fe7721e81b132, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
syncMode: 0
|
||||
syncInterval: 0.1
|
||||
playersRequired: 2
|
||||
playersTouching: 0
|
||||
detectorSize: {x: 1.09, y: 0.84, z: 0}
|
||||
numberTxt: {fileID: 3174570623818630657}
|
||||
DTP: []
|
||||
Neighbours: []
|
||||
targets: []
|
||||
scannedList: []
|
||||
--- !u!114 &3174570624901484385
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3174570624901484312}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 9b91ecbcc199f4492b9a91e820070131, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
sceneId: 0
|
||||
serverOnly: 0
|
||||
visible: 0
|
||||
m_AssetId: ccf80422e32e9ac86a9419f521ed8d48
|
||||
hasSpawned: 0
|
||||
--- !u!114 &3174570624901484386
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3174570624901484312}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 2f74aedd71d9a4f55b3ce499326d45fb, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
syncMode: 0
|
||||
syncInterval: 0.1
|
||||
clientAuthority: 0
|
||||
useLocalSpace: 0
|
||||
sendInterval: 0.05
|
||||
syncPosition: 1
|
||||
syncRotation: 1
|
||||
syncScale: 0
|
||||
interpolatePosition: 1
|
||||
interpolateRotation: 1
|
||||
interpolateScale: 0
|
||||
bufferTimeMultiplier: 1
|
||||
bufferSizeLimit: 64
|
||||
catchupThreshold: 4
|
||||
catchupMultiplier: 0.1
|
||||
showGizmos: 0
|
||||
showOverlay: 0
|
||||
overlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||
7
Assets/Prefabs/Level1/pushbox.prefab.meta
Normal file
7
Assets/Prefabs/Level1/pushbox.prefab.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ccf80422e32e9ac86a9419f521ed8d48
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -17,7 +17,8 @@ GameObject:
|
||||
- component: {fileID: 8584291556063275409}
|
||||
- component: {fileID: 345238637415786487}
|
||||
- component: {fileID: -2927710668536177812}
|
||||
m_Layer: 9
|
||||
- component: {fileID: 4396040053089248080}
|
||||
m_Layer: 8
|
||||
m_Name: picopark
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
@@ -53,6 +54,7 @@ SpriteRenderer:
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 0
|
||||
m_RayTraceProcedural: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
@@ -78,7 +80,7 @@ SpriteRenderer:
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 5
|
||||
m_Sprite: {fileID: 21300000, guid: e88c557aba8023277947be6e82d2215f, type: 3}
|
||||
m_Color: {r: 0, g: 1, b: 0.044991016, a: 1}
|
||||
m_Color: {r: 0.9529412, g: 0.9110929, b: 0.30196083, a: 1}
|
||||
m_FlipX: 1
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
@@ -102,14 +104,21 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
syncMode: 0
|
||||
syncInterval: 0
|
||||
LocalComponents:
|
||||
- {fileID: 8584291556063275412}
|
||||
LocalComponents: []
|
||||
characterSprite: {fileID: 8584291556063275423}
|
||||
insideDoor: 0
|
||||
friendLayer:
|
||||
serializedVersion: 2
|
||||
m_Bits: 256
|
||||
touchingNeighbours: []
|
||||
pColor: {r: 0, g: 0, b: 0, a: 0}
|
||||
playerName:
|
||||
playerColors:
|
||||
- {r: 0.9528302, g: 0.30113026, b: 0.30113026, a: 1}
|
||||
- {r: 0.95309377, g: 0.30189976, b: 0.95309377, a: 1}
|
||||
- {r: 0.30189976, g: 0.95309377, b: 0.34097812, a: 1}
|
||||
- {r: 0.30189976, g: 0.67855346, b: 0.95309377, a: 1}
|
||||
- {r: 0.95309377, g: 0.9101091, b: 0.30189976, a: 1}
|
||||
parentFrnd: {fileID: 0}
|
||||
--- !u!114 &8584291556063275412
|
||||
MonoBehaviour:
|
||||
@@ -145,7 +154,12 @@ MonoBehaviour:
|
||||
listenToInput: 1
|
||||
inDoor: 0
|
||||
insideDoor: 0
|
||||
neighboursDetectorSize: {x: 0.62, y: 0.7, z: 0}
|
||||
inWater: 0
|
||||
InteractionKeyPressed: 0
|
||||
JumpKeyPressed: 0
|
||||
HorizontalAxis: 0
|
||||
moveInput: 0
|
||||
waterBoost: 0
|
||||
groundCheckerDist: 0.19
|
||||
groundCheckerHeighMultipler: 0.52
|
||||
@@ -206,7 +220,7 @@ Animator:
|
||||
m_GameObject: {fileID: 8584291556063275422}
|
||||
m_Enabled: 1
|
||||
m_Avatar: {fileID: 0}
|
||||
m_Controller: {fileID: 0}
|
||||
m_Controller: {fileID: 9100000, guid: e63fce885a6d97beeb96f5b6928d0f33, type: 2}
|
||||
m_CullingMode: 0
|
||||
m_UpdateMode: 0
|
||||
m_ApplyRootMotion: 0
|
||||
@@ -246,7 +260,7 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
syncMode: 0
|
||||
syncInterval: 0.1
|
||||
clientAuthority: 1
|
||||
clientAuthority: 0
|
||||
useLocalSpace: 0
|
||||
sendInterval: 0
|
||||
syncPosition: 1
|
||||
@@ -262,3 +276,19 @@ MonoBehaviour:
|
||||
showGizmos: 0
|
||||
showOverlay: 0
|
||||
overlayColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||
--- !u!114 &4396040053089248080
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 8584291556063275422}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 7f6f3bf89aa97405989c802ba270f815, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
syncMode: 0
|
||||
syncInterval: 0.1
|
||||
clientAuthority: 0
|
||||
animator: {fileID: 8584291556063275409}
|
||||
|
||||
@@ -521,7 +521,8 @@ MonoBehaviour:
|
||||
type: 3}
|
||||
autoCreatePlayer: 1
|
||||
playerSpawnMethod: 0
|
||||
spawnPrefabs: []
|
||||
spawnPrefabs:
|
||||
- {fileID: 3174570624901484312, guid: ccf80422e32e9ac86a9419f521ed8d48, type: 3}
|
||||
--- !u!4 &119645377
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
@@ -382,7 +382,7 @@ Transform:
|
||||
m_LocalScale: {x: 2.3581803, y: 0.6276362, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1275598171}
|
||||
m_RootOrder: 9
|
||||
m_RootOrder: 8
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!61 &172213281
|
||||
BoxCollider2D:
|
||||
@@ -568,83 +568,6 @@ SpriteRenderer:
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!1 &244458272
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 244458273}
|
||||
- component: {fileID: 244458275}
|
||||
- component: {fileID: 244458274}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &244458273
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 244458272}
|
||||
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: 1201792974}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &244458274
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 244458272}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 35
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: 2
|
||||
--- !u!222 &244458275
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 244458272}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!1 &313792650
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1155,6 +1078,8 @@ MonoBehaviour:
|
||||
spawnPoint: {fileID: 2040464427}
|
||||
doorExit: {fileID: 1133546604}
|
||||
door: {fileID: 41766943}
|
||||
networkObjects:
|
||||
- {fileID: 3174570624901484312, guid: ccf80422e32e9ac86a9419f521ed8d48, type: 3}
|
||||
--- !u!4 &623534346
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1307,87 +1232,6 @@ Transform:
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1201792973
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1201792974}
|
||||
- component: {fileID: 1201792976}
|
||||
- component: {fileID: 1201792975}
|
||||
m_Layer: 5
|
||||
m_Name: Canvas
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1201792974
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1201792973}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 0.029679038, y: 0.03849614, z: 0.013566297}
|
||||
m_Children:
|
||||
- {fileID: 244458273}
|
||||
m_Father: {fileID: 1311713852}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0.0000020864, y: -0.0000020296}
|
||||
m_SizeDelta: {x: 50, y: 50}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1201792975
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1201792973}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_UiScaleMode: 0
|
||||
m_ReferencePixelsPerUnit: 100
|
||||
m_ScaleFactor: 1
|
||||
m_ReferenceResolution: {x: 800, y: 600}
|
||||
m_ScreenMatchMode: 0
|
||||
m_MatchWidthOrHeight: 0
|
||||
m_PhysicalUnit: 3
|
||||
m_FallbackScreenDPI: 96
|
||||
m_DefaultSpriteDPI: 96
|
||||
m_DynamicPixelsPerUnit: 1
|
||||
--- !u!223 &1201792976
|
||||
Canvas:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1201792973}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_RenderMode: 2
|
||||
m_Camera: {fileID: 0}
|
||||
m_PlaneDistance: 100
|
||||
m_PixelPerfect: 0
|
||||
m_ReceivesEvents: 1
|
||||
m_OverrideSorting: 0
|
||||
m_OverridePixelPerfect: 0
|
||||
m_SortingBucketNormalizedSize: 0
|
||||
m_AdditionalShaderChannelsFlag: 0
|
||||
m_SortingLayerID: 0
|
||||
m_SortingOrder: 6
|
||||
m_TargetDisplay: 0
|
||||
--- !u!1 &1275598170
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1423,161 +1267,10 @@ Transform:
|
||||
- {fileID: 385219887}
|
||||
- {fileID: 1526303840}
|
||||
- {fileID: 7809555}
|
||||
- {fileID: 1311713852}
|
||||
- {fileID: 172213280}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1311713851
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1311713852}
|
||||
- component: {fileID: 1311713855}
|
||||
- component: {fileID: 1311713854}
|
||||
- component: {fileID: 1311713853}
|
||||
- component: {fileID: 1311713856}
|
||||
m_Layer: 8
|
||||
m_Name: white (14)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1311713852
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1311713851}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalPosition: {x: -0.46, y: -5.05, z: 0.29492188}
|
||||
m_LocalScale: {x: 0.45710027, y: 0.35240662, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 1201792974}
|
||||
m_Father: {fileID: 1275598171}
|
||||
m_RootOrder: 8
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!50 &1311713853
|
||||
Rigidbody2D:
|
||||
serializedVersion: 4
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1311713851}
|
||||
m_BodyType: 0
|
||||
m_Simulated: 1
|
||||
m_UseFullKinematicContacts: 0
|
||||
m_UseAutoMass: 0
|
||||
m_Mass: 2
|
||||
m_LinearDrag: 0
|
||||
m_AngularDrag: 0
|
||||
m_GravityScale: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_Interpolate: 0
|
||||
m_SleepingMode: 1
|
||||
m_CollisionDetection: 0
|
||||
m_Constraints: 6
|
||||
--- !u!61 &1311713854
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1311713851}
|
||||
m_Enabled: 1
|
||||
m_Density: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_UsedByEffector: 0
|
||||
m_UsedByComposite: 0
|
||||
m_Offset: {x: 0, y: 0}
|
||||
m_SpriteTilingProperty:
|
||||
border: {x: 0, y: 0, z: 0, w: 0}
|
||||
pivot: {x: 0.5, y: 0.5}
|
||||
oldSize: {x: 2.25, y: 2.25}
|
||||
newSize: {x: 2.25, y: 2.25}
|
||||
adaptiveTilingThreshold: 0.5
|
||||
drawMode: 0
|
||||
adaptiveTiling: 0
|
||||
m_AutoTiling: 0
|
||||
serializedVersion: 2
|
||||
m_Size: {x: 2.25, y: 2.25}
|
||||
m_EdgeRadius: 0
|
||||
--- !u!212 &1311713855
|
||||
SpriteRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1311713851}
|
||||
m_Enabled: 1
|
||||
m_CastShadows: 0
|
||||
m_ReceiveShadows: 0
|
||||
m_DynamicOccludee: 1
|
||||
m_MotionVectors: 1
|
||||
m_LightProbeUsage: 1
|
||||
m_ReflectionProbeUsage: 1
|
||||
m_RayTracingMode: 0
|
||||
m_RenderingLayerMask: 1
|
||||
m_RendererPriority: 0
|
||||
m_Materials:
|
||||
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_StaticBatchInfo:
|
||||
firstSubMesh: 0
|
||||
subMeshCount: 0
|
||||
m_StaticBatchRoot: {fileID: 0}
|
||||
m_ProbeAnchor: {fileID: 0}
|
||||
m_LightProbeVolumeOverride: {fileID: 0}
|
||||
m_ScaleInLightmap: 1
|
||||
m_ReceiveGI: 1
|
||||
m_PreserveUVs: 0
|
||||
m_IgnoreNormalsForChartDetection: 0
|
||||
m_ImportantGI: 0
|
||||
m_StitchLightmapSeams: 1
|
||||
m_SelectedEditorRenderState: 0
|
||||
m_MinimumChartSize: 4
|
||||
m_AutoUVMaxDistance: 0.5
|
||||
m_AutoUVMaxAngle: 89
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 3
|
||||
m_Sprite: {fileID: 21300000, guid: e135ed1e773a1e046a13ebb09c556296, type: 3}
|
||||
m_Color: {r: 0.6509434, g: 0.0849272, b: 0.07983268, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
m_DrawMode: 0
|
||||
m_Size: {x: 2.25, y: 2.25}
|
||||
m_AdaptiveModeThreshold: 0.5
|
||||
m_SpriteTileMode: 0
|
||||
m_WasSpriteAssigned: 1
|
||||
m_MaskInteraction: 0
|
||||
m_SpriteSortPoint: 0
|
||||
--- !u!114 &1311713856
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1311713851}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 95601679d599a9fd8a2fe7721e81b132, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
syncMode: 0
|
||||
syncInterval: 0.1
|
||||
playersRequired: 2
|
||||
AttachedPlayerCount: 0
|
||||
numberTxt: {fileID: 244458274}
|
||||
playersTouching: []
|
||||
--- !u!1 &1526303839
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
||||
45
Assets/Scripts/DontMove.cs
Normal file
45
Assets/Scripts/DontMove.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class DontMove : MonoBehaviour
|
||||
{
|
||||
new Rigidbody rigidbody;
|
||||
public Vector3 position, velocity, angularVelocity;
|
||||
public bool isColliding;
|
||||
|
||||
void Awake()
|
||||
{
|
||||
rigidbody = GetComponent<Rigidbody>();
|
||||
}
|
||||
|
||||
void FixedUpdate()
|
||||
{
|
||||
if (!isColliding)
|
||||
{
|
||||
position = rigidbody.position;
|
||||
velocity = rigidbody.velocity;
|
||||
angularVelocity = rigidbody.angularVelocity;
|
||||
}
|
||||
}
|
||||
|
||||
void LateUpdate()
|
||||
{
|
||||
if (isColliding)
|
||||
{
|
||||
rigidbody.position = position;
|
||||
rigidbody.velocity = velocity;
|
||||
rigidbody.angularVelocity = angularVelocity;
|
||||
}
|
||||
}
|
||||
|
||||
void OnCollisionEnter(Collision collision)
|
||||
{
|
||||
if (collision.collider.tag == "Player")
|
||||
isColliding = true;
|
||||
}
|
||||
|
||||
void OnCollisionExit(Collision collision)
|
||||
{
|
||||
if (collision.collider.tag == "Player")
|
||||
isColliding = false;
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/DontMove.cs.meta
Normal file
11
Assets/Scripts/DontMove.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 35c18a3e8f9a08702a75aca84aaf8fd2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -28,7 +28,7 @@ public class Door : MonoBehaviour
|
||||
Debug.Log(col.gameObject.name + " Entered");
|
||||
NetPlayer playerObject = col.GetComponent<NetPlayer>();
|
||||
if(!locked&& playerObject!=null){
|
||||
if(playerObject.isLocalPlayer){
|
||||
if(playerObject.isServer){
|
||||
col.GetComponent<PlayerController>().inDoor = true;
|
||||
}
|
||||
}
|
||||
@@ -38,7 +38,7 @@ public class Door : MonoBehaviour
|
||||
Debug.Log(col.gameObject.name + " Exited");
|
||||
NetPlayer playerObject = col.GetComponent<NetPlayer>();
|
||||
if(!locked&& playerObject!=null){
|
||||
if(playerObject.isLocalPlayer){
|
||||
if(playerObject.isServer){
|
||||
col.GetComponent<PlayerController>().inDoor = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,39 +12,68 @@ public class NetPlayer : NetworkBehaviour
|
||||
public bool insideDoor;
|
||||
public LayerMask friendLayer;
|
||||
public List<NetPlayer> touchingNeighbours = new List<NetPlayer>();
|
||||
[SyncVar]
|
||||
public Color pColor;
|
||||
[SyncVar]
|
||||
public string playerName;
|
||||
public Color[] playerColors;
|
||||
void Start()
|
||||
{
|
||||
DontDestroyOnLoad(gameObject);
|
||||
if(!isLocalPlayer){
|
||||
gameObject.layer = LayerMask.NameToLayer("Gnd");
|
||||
if (!isLocalPlayer)
|
||||
{
|
||||
// gameObject.layer = LayerMask.NameToLayer("Gnd");
|
||||
//GetComponent<BoxCollider2D>().size = new Vector2(GetComponent<BoxCollider2D>().size.x/2f,GetComponent<BoxCollider2D>().size.y);
|
||||
foreach(Behaviour localComponent in LocalComponents){
|
||||
localComponent.enabled=false;
|
||||
foreach (Behaviour localComponent in LocalComponents)
|
||||
{
|
||||
localComponent.enabled = false;
|
||||
}
|
||||
}
|
||||
if(isLocalPlayer){
|
||||
if (isLocalPlayer)
|
||||
{
|
||||
SceneData.localPlayer = gameObject;
|
||||
if(SceneData.netSceneData==null){Debug.Log("Scene Data is not init yet");}else{
|
||||
transform.position = SceneData.netSceneData.spawnPoint.position;
|
||||
}
|
||||
// if(SceneData.netSceneData==null){Debug.Log("Scene Data is not init yet");}else{
|
||||
// transform.position = SceneData.netSceneData.spawnPoint.position;
|
||||
// }
|
||||
ReturnToSpawn();
|
||||
}
|
||||
if(isServer){
|
||||
pColor = playerColors[NetworkServer.connections.Count-1];
|
||||
}
|
||||
|
||||
GetComponent<SpriteRenderer>().color = pColor;
|
||||
}
|
||||
|
||||
public void ReturnToSpawn(){
|
||||
if(isLocalPlayer){
|
||||
public void ReturnToSpawn()
|
||||
{
|
||||
if (isServer)
|
||||
{
|
||||
StartCoroutine(returnToSpawn());
|
||||
}
|
||||
else
|
||||
{
|
||||
CmdReturnToSpawn();
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerator returnToSpawn(){
|
||||
while(SceneData.netSceneData==null){
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
}
|
||||
while(SceneData.netSceneData.spawnPoint==null){
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
}
|
||||
transform.position = SceneData.netSceneData.spawnPoint.position;
|
||||
|
||||
[Command]
|
||||
void CmdReturnToSpawn()
|
||||
{
|
||||
StartCoroutine(returnToSpawn());
|
||||
}
|
||||
|
||||
IEnumerator returnToSpawn()
|
||||
{
|
||||
while (SceneData.netSceneData == null)
|
||||
{
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
}
|
||||
while (SceneData.netSceneData.spawnPoint == null)
|
||||
{
|
||||
yield return new WaitForSeconds(0.1f);
|
||||
}
|
||||
transform.position = SceneData.netSceneData.spawnPoint.position;
|
||||
|
||||
}
|
||||
[SyncVar]
|
||||
public Transform parentFrnd;
|
||||
@@ -52,51 +81,68 @@ public class NetPlayer : NetworkBehaviour
|
||||
|
||||
Transform _parentFrnd;
|
||||
|
||||
[Command]
|
||||
void CmdChangeParent(Transform newParent){
|
||||
transform.parent = newParent;
|
||||
RpcChangeParent(newParent);
|
||||
}
|
||||
[ClientRpc]
|
||||
void RpcChangeParent(Transform newParent){
|
||||
transform.parent = newParent;
|
||||
|
||||
}
|
||||
float t=0;
|
||||
// [Command]
|
||||
// void CmdChangeParent(Transform newParent)
|
||||
// {
|
||||
// transform.parent = newParent;
|
||||
// RpcChangeParent(newParent);
|
||||
// parentFrnd = newParent;
|
||||
// }
|
||||
// [ClientRpc]
|
||||
// void RpcChangeParent(Transform newParent)
|
||||
// {
|
||||
// transform.parent = newParent;
|
||||
// parentFrnd = newParent;
|
||||
// }
|
||||
float t = 0;
|
||||
void FixedUpdate()
|
||||
{
|
||||
if(transform.parent!=null){
|
||||
if(t <1){
|
||||
t+=Time.deltaTime;
|
||||
}else{
|
||||
GetComponent<NetworkTransform>().useLocalSpace=true;
|
||||
if (isServer)
|
||||
{
|
||||
parentFrnd = getOnFriend();
|
||||
if (collisionImpact != Vector3.zero)
|
||||
{
|
||||
|
||||
GetComponent<Rigidbody2D>().AddForce(-collisionImpact, ForceMode2D.Impulse);
|
||||
collisionImpact = Vector3.zero;
|
||||
}
|
||||
}else{
|
||||
GetComponent<NetworkTransform>().useLocalSpace=false;
|
||||
t=0;
|
||||
}
|
||||
if(!isLocalPlayer){return;}
|
||||
parentFrnd = getOnFriend();
|
||||
transform.parent = parentFrnd;
|
||||
if(_parentFrnd != parentFrnd){
|
||||
if(isServer){
|
||||
transform.parent = parentFrnd;
|
||||
RpcChangeParent(parentFrnd);
|
||||
}else{
|
||||
CmdChangeParent(parentFrnd);
|
||||
|
||||
if (oldFlipVal != characterSprite.flipX)
|
||||
{
|
||||
if (isServer)
|
||||
{
|
||||
RpcFlipX(characterSprite.flipX);
|
||||
}
|
||||
else
|
||||
{
|
||||
CmdFlipX(characterSprite.flipX);
|
||||
}
|
||||
oldFlipVal = characterSprite.flipX;
|
||||
}
|
||||
_parentFrnd=parentFrnd;
|
||||
}
|
||||
|
||||
if(oldFlipVal != characterSprite.flipX){
|
||||
if(isServer){
|
||||
RpcFlipX(characterSprite.flipX);
|
||||
}else{
|
||||
CmdFlipX(characterSprite.flipX);
|
||||
transform.parent = parentFrnd;
|
||||
|
||||
if (transform.parent != null)
|
||||
{
|
||||
if (t < 1)
|
||||
{
|
||||
t += Time.deltaTime;
|
||||
}
|
||||
else
|
||||
{
|
||||
GetComponent<NetworkTransform>().useLocalSpace = true;
|
||||
}
|
||||
oldFlipVal=characterSprite.flipX;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
GetComponent<NetworkTransform>().useLocalSpace = false;
|
||||
t = 0;
|
||||
}
|
||||
|
||||
|
||||
if (!isLocalPlayer) { return; }
|
||||
|
||||
// bool someoneOnTop = false;
|
||||
// foreach(NetPlayer neighbour in touchingNeighbours){
|
||||
// if(neighbour.parentFrnd == this){
|
||||
@@ -108,69 +154,96 @@ public class NetPlayer : NetworkBehaviour
|
||||
|
||||
|
||||
|
||||
if(!isServer){return;}
|
||||
if (!isServer) { return; }
|
||||
|
||||
}
|
||||
|
||||
[Command]
|
||||
void CmdFlipX(bool value){
|
||||
void CmdFlipX(bool value)
|
||||
{
|
||||
FlipX(value);
|
||||
RpcFlipX(value);
|
||||
}
|
||||
|
||||
[ClientRpc]
|
||||
void RpcFlipX(bool value){
|
||||
if(!isLocalPlayer)FlipX(value);
|
||||
void RpcFlipX(bool value)
|
||||
{
|
||||
FlipX(value);
|
||||
}
|
||||
|
||||
void FlipX(bool value){
|
||||
void FlipX(bool value)
|
||||
{
|
||||
characterSprite.flipX = value;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void CallChangeInsideDoor(bool value){
|
||||
if(isServer){
|
||||
insideDoor=value;
|
||||
}else{
|
||||
public void CallChangeInsideDoor(bool value)
|
||||
{
|
||||
if (isServer)
|
||||
{
|
||||
insideDoor = value;
|
||||
}
|
||||
else
|
||||
{
|
||||
CmdChangeInsideDoor(value);
|
||||
}
|
||||
}
|
||||
[Command]
|
||||
void CmdChangeInsideDoor(bool value){
|
||||
insideDoor=value;
|
||||
void CmdChangeInsideDoor(bool value)
|
||||
{
|
||||
insideDoor = value;
|
||||
}
|
||||
|
||||
|
||||
public Transform getOnFriend()
|
||||
{
|
||||
Transform friend =null;
|
||||
Transform friend = null;
|
||||
//return (Physics2D.Linecast(transform.position, groundChecker.position, groundLayerMask));
|
||||
Collider2D col = GetComponentInChildren<Collider2D>();
|
||||
RaycastHit2D hit = Physics2D.BoxCast(col.bounds.center, new Vector2(col.bounds.size.x - (col.bounds.size.x / 5f), col.bounds.size.y), 0, Vector2.down, 0.1f, friendLayer);
|
||||
friend = (hit) ? ((hit.collider.transform.GetComponent<NetPlayer>()!=null) ? hit.collider.transform : null) : null;
|
||||
friend = (hit) ? ((hit.collider.transform.GetComponent<NetPlayer>() != null && hit.collider.transform.GetComponent<NetPlayer>() != this) ? hit.collider.transform : null) : null;
|
||||
return friend;
|
||||
}
|
||||
|
||||
void OnCollisionEnter2D(Collision2D col){
|
||||
Vector3 collisionImpact;
|
||||
void OnCollisionEnter2D(Collision2D col)
|
||||
{
|
||||
NetPlayer obj = col.collider.transform.GetComponent<NetPlayer>();
|
||||
if(obj!=null){
|
||||
if(!touchingNeighbours.Contains(obj)){
|
||||
if (obj != null)
|
||||
{
|
||||
collisionImpact = col.contacts[0].normal * col.contacts[0].relativeVelocity * col.otherRigidbody.mass;
|
||||
Debug.Log("Collision impact : " + collisionImpact);
|
||||
if (!touchingNeighbours.Contains(obj))
|
||||
{
|
||||
touchingNeighbours.Add(obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
void OnCollisionExit2D(Collision2D col){
|
||||
void OnCollisionExit2D(Collision2D col)
|
||||
{
|
||||
NetPlayer obj = col.collider.transform.GetComponent<NetPlayer>();
|
||||
if(obj!=null){
|
||||
if(touchingNeighbours.Contains(obj)){
|
||||
if (obj != null)
|
||||
{
|
||||
if (touchingNeighbours.Contains(obj))
|
||||
{
|
||||
touchingNeighbours.Remove(obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void UpdatePushBoxes(){
|
||||
foreach(PushBox box in FindObjectsOfType<PushBox>()){
|
||||
void UpdatePushBoxes()
|
||||
{
|
||||
foreach (PushBox box in FindObjectsOfType<PushBox>())
|
||||
{
|
||||
box.UpdateNeighbourCount();
|
||||
}
|
||||
}
|
||||
|
||||
public void OnSceneChanged(){
|
||||
if(!isServer){return;}
|
||||
foreach(GameObject obj in SceneData.netSceneData.networkObjects){
|
||||
GameObject go = Instantiate(obj);
|
||||
NetworkServer.Spawn(go, NetworkServer.localConnection);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@ public class NetSceneData : MonoBehaviour
|
||||
public Transform spawnPoint;
|
||||
public Transform doorExit;
|
||||
public Door door;
|
||||
|
||||
public GameObject[] networkObjects;
|
||||
void Awake()
|
||||
{
|
||||
SceneData.netSceneData = this;
|
||||
|
||||
@@ -27,18 +27,60 @@ public class PlayerController : NetworkBehaviour
|
||||
public bool insideDoor = false;
|
||||
bool enteringDoor = false;
|
||||
|
||||
public Vector3 neighboursDetectorSize;
|
||||
|
||||
void Start()
|
||||
{
|
||||
jumpT = jumpDuration;
|
||||
if(!isServer){
|
||||
rigidbody.simulated=false;
|
||||
}
|
||||
}
|
||||
|
||||
[SyncVar]
|
||||
bool _grounded = false;
|
||||
float moveInput = 0;
|
||||
bool jumpReleased = true;
|
||||
[HideInInspector]
|
||||
public bool inWater;
|
||||
|
||||
[SyncVar]
|
||||
public bool InteractionKeyPressed;
|
||||
[SyncVar]
|
||||
public bool JumpKeyPressed;
|
||||
[SyncVar]
|
||||
public float HorizontalAxis;
|
||||
public float moveInput = 0;
|
||||
|
||||
[Command]
|
||||
void CmdUpdateInput(float _horizontal, bool jump, bool interact){
|
||||
HorizontalAxis = _horizontal;
|
||||
JumpKeyPressed=jump;
|
||||
InteractionKeyPressed=interact;
|
||||
}
|
||||
|
||||
void ListenInput(){
|
||||
HorizontalAxis=0;
|
||||
if (Input.GetKey(InputManager.data().leftInput)) { HorizontalAxis = -1; } else if (Input.GetKey(InputManager.data().rightInput)) { HorizontalAxis = 1; }
|
||||
JumpKeyPressed = Input.GetKey(InputManager.data().jumpInput);
|
||||
InteractionKeyPressed = Input.GetKey(InputManager.data().interactingKey);
|
||||
}
|
||||
|
||||
void FixedUpdate()
|
||||
{
|
||||
|
||||
if(!isServer){
|
||||
if(isLocalPlayer){
|
||||
//Command Inputs to server
|
||||
ListenInput();
|
||||
CmdUpdateInput(HorizontalAxis, JumpKeyPressed, InteractionKeyPressed);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if(isLocalPlayer){
|
||||
ListenInput();
|
||||
}
|
||||
|
||||
isGrounded = getGrounded();
|
||||
|
||||
if (_grounded != isGrounded)
|
||||
@@ -57,7 +99,7 @@ public class PlayerController : NetworkBehaviour
|
||||
if (isSwimming)
|
||||
{
|
||||
rigidbody.velocity = new Vector2(rigidbody.velocity.x, Mathf.Lerp(rigidbody.velocity.y, buoyantForce, buoyantSpd));
|
||||
if ((Input.GetKey(InputManager.data().jumpInput)))
|
||||
if ((JumpKeyPressed))
|
||||
{
|
||||
rigidbody.velocity = new Vector2(rigidbody.velocity.x, jumpForce / 12f);
|
||||
}
|
||||
@@ -73,18 +115,16 @@ public class PlayerController : NetworkBehaviour
|
||||
//Update In-Air value on animation
|
||||
animator.SetBool("inAir", !isGrounded);
|
||||
animator.SetBool("isOnWater", inWater);
|
||||
|
||||
float HorizontalAxis = 0;
|
||||
if (Input.GetKey(InputManager.data().leftInput)) { HorizontalAxis = -1; } else if (Input.GetKey(InputManager.data().rightInput)) { HorizontalAxis = 1; }
|
||||
|
||||
// if (GameManager.isPaused) { HorizontalAxis = 0; }
|
||||
//Move according to input
|
||||
|
||||
//Exit the door
|
||||
if (enteringDoor && !Input.GetKey(InputManager.data().interactingKey))
|
||||
if (enteringDoor && !InteractionKeyPressed)
|
||||
{
|
||||
enteringDoor = false;
|
||||
}
|
||||
if (insideDoor && !enteringDoor && Input.GetKey(InputManager.data().interactingKey))
|
||||
if (insideDoor && !enteringDoor && InteractionKeyPressed)
|
||||
{
|
||||
Debug.Log("Exiting door");
|
||||
transform.position = SceneData.netSceneData.door.transform.position;
|
||||
@@ -101,18 +141,20 @@ public class PlayerController : NetworkBehaviour
|
||||
else
|
||||
{
|
||||
//Change moveInput while in-air | IF there is an input
|
||||
if (Input.GetKey(InputManager.data().leftInput) || Input.GetKey(InputManager.data().rightInput))
|
||||
// if (Input.GetKey(InputManager.data().leftInput) || Input.GetKey(InputManager.data().rightInput))
|
||||
if (HorizontalAxis!=0)
|
||||
{
|
||||
moveInput = Mathf.Lerp(moveInput, HorizontalAxis, 0.2f);
|
||||
}
|
||||
}
|
||||
|
||||
//Enter the door
|
||||
if (inDoor && Input.GetKey(InputManager.data().interactingKey) && !enteringDoor)
|
||||
if (inDoor && InteractionKeyPressed && !enteringDoor)
|
||||
{
|
||||
if (SceneData.netSceneData.doorExit != null)
|
||||
{
|
||||
Debug.Log("Entering door");
|
||||
transform.DetachChildren();
|
||||
transform.position = SceneData.netSceneData.doorExit.position;
|
||||
insideDoor = true;
|
||||
enteringDoor = true;
|
||||
@@ -148,10 +190,15 @@ public class PlayerController : NetworkBehaviour
|
||||
// }
|
||||
// }
|
||||
rigidbody.transform.Translate(new Vector2(moveSpeed * moveInput, 0));
|
||||
if(moveInput == 0){
|
||||
rigidbody.constraints = RigidbodyConstraints2D.FreezePositionX|RigidbodyConstraints2D.FreezeRotation;
|
||||
}else{
|
||||
rigidbody.constraints = RigidbodyConstraints2D.FreezeRotation;
|
||||
}
|
||||
|
||||
|
||||
bool _canJump = canJump();
|
||||
if ((Input.GetKey(InputManager.data().jumpInput)) && _canJump)
|
||||
if ((JumpKeyPressed) && _canJump)
|
||||
{
|
||||
jumpT = 0;
|
||||
jumpReleased = false;
|
||||
@@ -161,7 +208,7 @@ public class PlayerController : NetworkBehaviour
|
||||
|
||||
|
||||
//Blocks continous jump button
|
||||
if (!Input.GetKey(InputManager.data().jumpInput)) { jumpReleased = true; }
|
||||
if (!JumpKeyPressed) { jumpReleased = true; }
|
||||
|
||||
//Apply Jump to player
|
||||
if (jumpT < jumpDuration)
|
||||
@@ -169,7 +216,7 @@ public class PlayerController : NetworkBehaviour
|
||||
jumpT += Time.deltaTime;
|
||||
float progress = (jumpDuration - jumpT) / jumpDuration;
|
||||
//|| jumpT < jumpDuration/2f
|
||||
if ((Input.GetKey(InputManager.data().jumpInput)) || b) { rigidbody.AddForce(new Vector2(0, jumpForce * progress)); }
|
||||
if ((JumpKeyPressed) || b) { rigidbody.AddForce(new Vector2(0, jumpForce * progress)); }
|
||||
}
|
||||
else { b = false; }
|
||||
|
||||
@@ -227,6 +274,7 @@ public class PlayerController : NetworkBehaviour
|
||||
void OnDrawGizmos()
|
||||
{
|
||||
Collider2D col = GetComponentInChildren<Collider2D>();
|
||||
Gizmos.DrawWireCube(transform.position, neighboursDetectorSize);
|
||||
Gizmos.color = Color.red;
|
||||
Gizmos.DrawWireCube(col.bounds.center - new Vector3(0, groundCheckerDist), new Vector2(col.bounds.size.x - (col.bounds.size.x / 5f), col.bounds.size.y * groundCheckerHeighMultipler));
|
||||
}
|
||||
|
||||
@@ -6,6 +6,9 @@ using Mirror;
|
||||
public class PushBox : NetworkBehaviour
|
||||
{
|
||||
public int playersRequired;
|
||||
[SyncVar(hook =nameof(OnTouchersChanged))]
|
||||
public int playersTouching;
|
||||
public Vector3 detectorSize;
|
||||
public Text numberTxt;
|
||||
|
||||
public List<NetPlayer> DTP;
|
||||
@@ -18,35 +21,21 @@ public class PushBox : NetworkBehaviour
|
||||
UpdateText();
|
||||
}
|
||||
|
||||
void OnCollisionEnter2D(Collision2D col)
|
||||
{
|
||||
NetPlayer player = col.collider.GetComponent<NetPlayer>();
|
||||
if (player != null)
|
||||
{
|
||||
if (!DTP.Contains(player))
|
||||
{
|
||||
DTP.Add(player);
|
||||
UpdateNeighbourCount();
|
||||
|
||||
}
|
||||
}
|
||||
void Update(){
|
||||
|
||||
}
|
||||
|
||||
void OnCollisionExit2D(Collision2D col)
|
||||
{
|
||||
NetPlayer player = col.collider.GetComponent<NetPlayer>();
|
||||
if (player != null)
|
||||
{
|
||||
if (DTP.Contains(player))
|
||||
{
|
||||
DTP.Remove(player);
|
||||
UpdateNeighbourCount();
|
||||
}
|
||||
}
|
||||
private void OnDrawGizmos() {
|
||||
Gizmos.DrawWireCube(transform.position, detectorSize);
|
||||
}
|
||||
|
||||
[Server]
|
||||
public void UpdateNeighbourCount(){
|
||||
|
||||
public void UpdateNeighbourCount()
|
||||
}
|
||||
|
||||
[Server]
|
||||
public void UpdateNeighbourCount2()
|
||||
{
|
||||
targets = new List<NetPlayer>();
|
||||
Neighbours = new List<NetPlayer>();
|
||||
@@ -58,7 +47,7 @@ public class PushBox : NetworkBehaviour
|
||||
while(targets.Count > 0 && failCount < 50){
|
||||
failCount++;
|
||||
|
||||
Neighbours.Add(targets[0]);
|
||||
if(!Neighbours.Contains(targets[0])){Neighbours.Add(targets[0]);}
|
||||
scannedList.Add(targets[0]);
|
||||
foreach(NetPlayer neighbour in targets[0].touchingNeighbours){
|
||||
if(!scannedList.Contains(neighbour)){
|
||||
@@ -73,7 +62,9 @@ public class PushBox : NetworkBehaviour
|
||||
Debug.LogError("Fail switch triggered");
|
||||
}
|
||||
|
||||
GetComponent<Rigidbody2D>().simulated=((playersRequired - Neighbours.Count) > 0);
|
||||
playersTouching = Neighbours.Count;
|
||||
|
||||
GetComponent<Rigidbody2D>().constraints=((playersRequired - playersTouching) > 0) ? RigidbodyConstraints2D.FreezeAll : RigidbodyConstraints2D.FreezeRotation;
|
||||
|
||||
UpdateText();
|
||||
}
|
||||
@@ -82,4 +73,14 @@ public class PushBox : NetworkBehaviour
|
||||
{
|
||||
numberTxt.text = (playersRequired - Neighbours.Count).ToString();
|
||||
}
|
||||
|
||||
void UpdateText(int touchers)
|
||||
{
|
||||
numberTxt.text = (playersRequired - touchers).ToString();
|
||||
}
|
||||
|
||||
|
||||
void OnTouchersChanged(int oldValue, int newValue){
|
||||
UpdateText(newValue);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ public class loadingScreen : MonoBehaviour
|
||||
// Debug.Log()
|
||||
SceneData.netSceneData = FindObjectOfType<NetSceneData>();
|
||||
SceneData.localPlayer.GetComponent<NetPlayer>().ReturnToSpawn();
|
||||
|
||||
SceneData.localPlayer.GetComponent<NetPlayer>().OnSceneChanged();
|
||||
}
|
||||
}
|
||||
public bool alreadyConnected= false;
|
||||
|
||||
68
Assets/Textures/Idle.anim
Normal file
68
Assets/Textures/Idle.anim
Normal file
@@ -0,0 +1,68 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!74 &7400000
|
||||
AnimationClip:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Idle
|
||||
serializedVersion: 6
|
||||
m_Legacy: 0
|
||||
m_Compressed: 0
|
||||
m_UseHighQualityCurve: 1
|
||||
m_RotationCurves: []
|
||||
m_CompressedRotationCurves: []
|
||||
m_EulerCurves: []
|
||||
m_PositionCurves: []
|
||||
m_ScaleCurves: []
|
||||
m_FloatCurves: []
|
||||
m_PPtrCurves:
|
||||
- curve:
|
||||
- time: 0
|
||||
value: {fileID: 21300000, guid: e88c557aba8023277947be6e82d2215f, type: 3}
|
||||
attribute: m_Sprite
|
||||
path:
|
||||
classID: 212
|
||||
script: {fileID: 0}
|
||||
m_SampleRate: 60
|
||||
m_WrapMode: 0
|
||||
m_Bounds:
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
m_Extent: {x: 0, y: 0, z: 0}
|
||||
m_ClipBindingConstant:
|
||||
genericBindings:
|
||||
- serializedVersion: 2
|
||||
path: 0
|
||||
attribute: 0
|
||||
script: {fileID: 0}
|
||||
typeID: 212
|
||||
customType: 23
|
||||
isPPtrCurve: 1
|
||||
pptrCurveMapping:
|
||||
- {fileID: 21300000, guid: e88c557aba8023277947be6e82d2215f, type: 3}
|
||||
m_AnimationClipSettings:
|
||||
serializedVersion: 2
|
||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
||||
m_AdditiveReferencePoseTime: 0
|
||||
m_StartTime: 0
|
||||
m_StopTime: 0.016666668
|
||||
m_OrientationOffsetY: 0
|
||||
m_Level: 0
|
||||
m_CycleOffset: 0
|
||||
m_HasAdditiveReferencePose: 0
|
||||
m_LoopTime: 1
|
||||
m_LoopBlend: 0
|
||||
m_LoopBlendOrientation: 0
|
||||
m_LoopBlendPositionY: 0
|
||||
m_LoopBlendPositionXZ: 0
|
||||
m_KeepOriginalOrientation: 0
|
||||
m_KeepOriginalPositionY: 1
|
||||
m_KeepOriginalPositionXZ: 0
|
||||
m_HeightFromFeet: 0
|
||||
m_Mirror: 0
|
||||
m_EditorCurves: []
|
||||
m_EulerEditorCurves: []
|
||||
m_HasGenericRootTransform: 0
|
||||
m_HasMotionFloatCurves: 0
|
||||
m_Events: []
|
||||
8
Assets/Textures/Idle.anim.meta
Normal file
8
Assets/Textures/Idle.anim.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ff9727e14bd89f1508174468a5562d52
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
68
Assets/Textures/Jump.anim
Normal file
68
Assets/Textures/Jump.anim
Normal file
@@ -0,0 +1,68 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!74 &7400000
|
||||
AnimationClip:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Jump
|
||||
serializedVersion: 6
|
||||
m_Legacy: 0
|
||||
m_Compressed: 0
|
||||
m_UseHighQualityCurve: 1
|
||||
m_RotationCurves: []
|
||||
m_CompressedRotationCurves: []
|
||||
m_EulerCurves: []
|
||||
m_PositionCurves: []
|
||||
m_ScaleCurves: []
|
||||
m_FloatCurves: []
|
||||
m_PPtrCurves:
|
||||
- curve:
|
||||
- time: 0
|
||||
value: {fileID: 21300000, guid: 967ecca79f754d4419bb4a5cf0532f07, type: 3}
|
||||
attribute: m_Sprite
|
||||
path:
|
||||
classID: 212
|
||||
script: {fileID: 0}
|
||||
m_SampleRate: 60
|
||||
m_WrapMode: 0
|
||||
m_Bounds:
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
m_Extent: {x: 0, y: 0, z: 0}
|
||||
m_ClipBindingConstant:
|
||||
genericBindings:
|
||||
- serializedVersion: 2
|
||||
path: 0
|
||||
attribute: 0
|
||||
script: {fileID: 0}
|
||||
typeID: 212
|
||||
customType: 23
|
||||
isPPtrCurve: 1
|
||||
pptrCurveMapping:
|
||||
- {fileID: 21300000, guid: 967ecca79f754d4419bb4a5cf0532f07, type: 3}
|
||||
m_AnimationClipSettings:
|
||||
serializedVersion: 2
|
||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
||||
m_AdditiveReferencePoseTime: 0
|
||||
m_StartTime: 0
|
||||
m_StopTime: 0.016666668
|
||||
m_OrientationOffsetY: 0
|
||||
m_Level: 0
|
||||
m_CycleOffset: 0
|
||||
m_HasAdditiveReferencePose: 0
|
||||
m_LoopTime: 1
|
||||
m_LoopBlend: 0
|
||||
m_LoopBlendOrientation: 0
|
||||
m_LoopBlendPositionY: 0
|
||||
m_LoopBlendPositionXZ: 0
|
||||
m_KeepOriginalOrientation: 0
|
||||
m_KeepOriginalPositionY: 1
|
||||
m_KeepOriginalPositionXZ: 0
|
||||
m_HeightFromFeet: 0
|
||||
m_Mirror: 0
|
||||
m_EditorCurves: []
|
||||
m_EulerEditorCurves: []
|
||||
m_HasGenericRootTransform: 0
|
||||
m_HasMotionFloatCurves: 0
|
||||
m_Events: []
|
||||
8
Assets/Textures/Jump.anim.meta
Normal file
8
Assets/Textures/Jump.anim.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 312b85562db77235ea992ddebe0c0f34
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
80
Assets/Textures/PlayerAnim.anim
Normal file
80
Assets/Textures/PlayerAnim.anim
Normal file
@@ -0,0 +1,80 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!74 &7400000
|
||||
AnimationClip:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: PlayerAnim
|
||||
serializedVersion: 6
|
||||
m_Legacy: 0
|
||||
m_Compressed: 0
|
||||
m_UseHighQualityCurve: 1
|
||||
m_RotationCurves: []
|
||||
m_CompressedRotationCurves: []
|
||||
m_EulerCurves: []
|
||||
m_PositionCurves: []
|
||||
m_ScaleCurves: []
|
||||
m_FloatCurves: []
|
||||
m_PPtrCurves:
|
||||
- curve:
|
||||
- time: 0
|
||||
value: {fileID: 21300000, guid: e88c557aba8023277947be6e82d2215f, type: 3}
|
||||
- time: 0.25
|
||||
value: {fileID: 21300000, guid: 967ecca79f754d4419bb4a5cf0532f07, type: 3}
|
||||
- time: 0.5
|
||||
value: {fileID: 21300000, guid: 7d3681d621a959b8282cf0b61a8d4ba8, type: 3}
|
||||
- time: 0.75
|
||||
value: {fileID: 21300000, guid: 967ecca79f754d4419bb4a5cf0532f07, type: 3}
|
||||
- time: 1
|
||||
value: {fileID: 21300000, guid: e88c557aba8023277947be6e82d2215f, type: 3}
|
||||
attribute: m_Sprite
|
||||
path:
|
||||
classID: 212
|
||||
script: {fileID: 0}
|
||||
m_SampleRate: 60
|
||||
m_WrapMode: 0
|
||||
m_Bounds:
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
m_Extent: {x: 0, y: 0, z: 0}
|
||||
m_ClipBindingConstant:
|
||||
genericBindings:
|
||||
- serializedVersion: 2
|
||||
path: 0
|
||||
attribute: 0
|
||||
script: {fileID: 0}
|
||||
typeID: 212
|
||||
customType: 23
|
||||
isPPtrCurve: 1
|
||||
pptrCurveMapping:
|
||||
- {fileID: 21300000, guid: e88c557aba8023277947be6e82d2215f, type: 3}
|
||||
- {fileID: 21300000, guid: 967ecca79f754d4419bb4a5cf0532f07, type: 3}
|
||||
- {fileID: 21300000, guid: 7d3681d621a959b8282cf0b61a8d4ba8, type: 3}
|
||||
- {fileID: 21300000, guid: 967ecca79f754d4419bb4a5cf0532f07, type: 3}
|
||||
- {fileID: 21300000, guid: e88c557aba8023277947be6e82d2215f, type: 3}
|
||||
m_AnimationClipSettings:
|
||||
serializedVersion: 2
|
||||
m_AdditiveReferencePoseClip: {fileID: 0}
|
||||
m_AdditiveReferencePoseTime: 0
|
||||
m_StartTime: 0
|
||||
m_StopTime: 1.0166667
|
||||
m_OrientationOffsetY: 0
|
||||
m_Level: 0
|
||||
m_CycleOffset: 0
|
||||
m_HasAdditiveReferencePose: 0
|
||||
m_LoopTime: 1
|
||||
m_LoopBlend: 0
|
||||
m_LoopBlendOrientation: 0
|
||||
m_LoopBlendPositionY: 0
|
||||
m_LoopBlendPositionXZ: 0
|
||||
m_KeepOriginalOrientation: 0
|
||||
m_KeepOriginalPositionY: 1
|
||||
m_KeepOriginalPositionXZ: 0
|
||||
m_HeightFromFeet: 0
|
||||
m_Mirror: 0
|
||||
m_EditorCurves: []
|
||||
m_EulerEditorCurves: []
|
||||
m_HasGenericRootTransform: 0
|
||||
m_HasMotionFloatCurves: 0
|
||||
m_Events: []
|
||||
8
Assets/Textures/PlayerAnim.anim.meta
Normal file
8
Assets/Textures/PlayerAnim.anim.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e6212b4031a7ff2958e6dd48b14b98b5
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
344
Assets/Textures/picopark.controller
Normal file
344
Assets/Textures/picopark.controller
Normal file
@@ -0,0 +1,344 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1101 &-8483142202414362136
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 2
|
||||
m_ConditionEvent: inAir
|
||||
m_EventTreshold: 0
|
||||
- m_ConditionMode: 2
|
||||
m_ConditionEvent: moving
|
||||
m_EventTreshold: 0
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 202946651464623045}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: 0.25
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: 0
|
||||
m_HasExitTime: 0
|
||||
m_HasFixedDuration: 1
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!1107 &-4123463004572241105
|
||||
AnimatorStateMachine:
|
||||
serializedVersion: 5
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Base Layer
|
||||
m_ChildStates:
|
||||
- serializedVersion: 1
|
||||
m_State: {fileID: 689730143132401903}
|
||||
m_Position: {x: 120, y: 0, z: 0}
|
||||
- serializedVersion: 1
|
||||
m_State: {fileID: 714955962483225527}
|
||||
m_Position: {x: 450, y: 0, z: 0}
|
||||
- serializedVersion: 1
|
||||
m_State: {fileID: 202946651464623045}
|
||||
m_Position: {x: 280, y: 160, z: 0}
|
||||
m_ChildStateMachines: []
|
||||
m_AnyStateTransitions: []
|
||||
m_EntryTransitions: []
|
||||
m_StateMachineTransitions: {}
|
||||
m_StateMachineBehaviours: []
|
||||
m_AnyStatePosition: {x: -100, y: 30, z: 0}
|
||||
m_EntryPosition: {x: -120, y: 180, z: 0}
|
||||
m_ExitPosition: {x: 800, y: 120, z: 0}
|
||||
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
||||
m_DefaultState: {fileID: 202946651464623045}
|
||||
--- !u!1101 &-3367963830302198399
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 2
|
||||
m_ConditionEvent: moving
|
||||
m_EventTreshold: 0
|
||||
- m_ConditionMode: 2
|
||||
m_ConditionEvent: moving
|
||||
m_EventTreshold: 0
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 202946651464623045}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: 0.25
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: 0.75409836
|
||||
m_HasExitTime: 0
|
||||
m_HasFixedDuration: 1
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!1101 &-3341695456012808837
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 1
|
||||
m_ConditionEvent: inAir
|
||||
m_EventTreshold: 0
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 714955962483225527}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: 0.25
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: 0
|
||||
m_HasExitTime: 0
|
||||
m_HasFixedDuration: 1
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!1101 &-740901182746733325
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 1
|
||||
m_ConditionEvent: moving
|
||||
m_EventTreshold: 0
|
||||
- m_ConditionMode: 2
|
||||
m_ConditionEvent: inAir
|
||||
m_EventTreshold: 0
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 689730143132401903}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: 0.25
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: 0
|
||||
m_HasExitTime: 0
|
||||
m_HasFixedDuration: 1
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!1101 &-368830200356156537
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 1
|
||||
m_ConditionEvent: inAir
|
||||
m_EventTreshold: 0
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 714955962483225527}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: 0.25
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: 0.75409836
|
||||
m_HasExitTime: 0
|
||||
m_HasFixedDuration: 1
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!91 &9100000
|
||||
AnimatorController:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: picopark
|
||||
serializedVersion: 5
|
||||
m_AnimatorParameters:
|
||||
- m_Name: moving
|
||||
m_Type: 4
|
||||
m_DefaultFloat: 0
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 0}
|
||||
- m_Name: inAir
|
||||
m_Type: 4
|
||||
m_DefaultFloat: 0
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 0}
|
||||
- m_Name: isSwimming
|
||||
m_Type: 4
|
||||
m_DefaultFloat: 0
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 0}
|
||||
- m_Name: isOnWater
|
||||
m_Type: 4
|
||||
m_DefaultFloat: 0
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 0}
|
||||
m_AnimatorLayers:
|
||||
- serializedVersion: 5
|
||||
m_Name: Base Layer
|
||||
m_StateMachine: {fileID: -4123463004572241105}
|
||||
m_Mask: {fileID: 0}
|
||||
m_Motions: []
|
||||
m_Behaviours: []
|
||||
m_BlendingMode: 0
|
||||
m_SyncedLayerIndex: -1
|
||||
m_DefaultWeight: 0
|
||||
m_IKPass: 0
|
||||
m_SyncedLayerAffectsTiming: 0
|
||||
m_Controller: {fileID: 9100000}
|
||||
--- !u!1102 &202946651464623045
|
||||
AnimatorState:
|
||||
serializedVersion: 5
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Idle
|
||||
m_Speed: 1
|
||||
m_CycleOffset: 0
|
||||
m_Transitions:
|
||||
- {fileID: 2613331665074685550}
|
||||
- {fileID: -3341695456012808837}
|
||||
m_StateMachineBehaviours: []
|
||||
m_Position: {x: 50, y: 50, z: 0}
|
||||
m_IKOnFeet: 0
|
||||
m_WriteDefaultValues: 1
|
||||
m_Mirror: 0
|
||||
m_SpeedParameterActive: 0
|
||||
m_MirrorParameterActive: 0
|
||||
m_CycleOffsetParameterActive: 0
|
||||
m_TimeParameterActive: 0
|
||||
m_Motion: {fileID: 7400000, guid: ff9727e14bd89f1508174468a5562d52, type: 2}
|
||||
m_Tag:
|
||||
m_SpeedParameter:
|
||||
m_MirrorParameter:
|
||||
m_CycleOffsetParameter:
|
||||
m_TimeParameter:
|
||||
--- !u!1102 &689730143132401903
|
||||
AnimatorState:
|
||||
serializedVersion: 5
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: PlayerAnim
|
||||
m_Speed: 1
|
||||
m_CycleOffset: 0
|
||||
m_Transitions:
|
||||
- {fileID: -368830200356156537}
|
||||
- {fileID: -3367963830302198399}
|
||||
m_StateMachineBehaviours: []
|
||||
m_Position: {x: 50, y: 50, z: 0}
|
||||
m_IKOnFeet: 0
|
||||
m_WriteDefaultValues: 1
|
||||
m_Mirror: 0
|
||||
m_SpeedParameterActive: 0
|
||||
m_MirrorParameterActive: 0
|
||||
m_CycleOffsetParameterActive: 0
|
||||
m_TimeParameterActive: 0
|
||||
m_Motion: {fileID: 7400000, guid: e6212b4031a7ff2958e6dd48b14b98b5, type: 2}
|
||||
m_Tag:
|
||||
m_SpeedParameter:
|
||||
m_MirrorParameter:
|
||||
m_CycleOffsetParameter:
|
||||
m_TimeParameter:
|
||||
--- !u!1102 &714955962483225527
|
||||
AnimatorState:
|
||||
serializedVersion: 5
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name: Jump
|
||||
m_Speed: 1
|
||||
m_CycleOffset: 0
|
||||
m_Transitions:
|
||||
- {fileID: -8483142202414362136}
|
||||
- {fileID: -740901182746733325}
|
||||
m_StateMachineBehaviours: []
|
||||
m_Position: {x: 50, y: 50, z: 0}
|
||||
m_IKOnFeet: 0
|
||||
m_WriteDefaultValues: 1
|
||||
m_Mirror: 0
|
||||
m_SpeedParameterActive: 0
|
||||
m_MirrorParameterActive: 0
|
||||
m_CycleOffsetParameterActive: 0
|
||||
m_TimeParameterActive: 0
|
||||
m_Motion: {fileID: 7400000, guid: 312b85562db77235ea992ddebe0c0f34, type: 2}
|
||||
m_Tag:
|
||||
m_SpeedParameter:
|
||||
m_MirrorParameter:
|
||||
m_CycleOffsetParameter:
|
||||
m_TimeParameter:
|
||||
--- !u!1101 &2613331665074685550
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 1
|
||||
m_ConditionEvent: moving
|
||||
m_EventTreshold: 0
|
||||
- m_ConditionMode: 2
|
||||
m_ConditionEvent: inAir
|
||||
m_EventTreshold: 0
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 689730143132401903}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: 0.25
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: 0
|
||||
m_HasExitTime: 0
|
||||
m_HasFixedDuration: 1
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
--- !u!1101 &3684682569158077439
|
||||
AnimatorStateTransition:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_Conditions: []
|
||||
m_DstStateMachine: {fileID: 0}
|
||||
m_DstState: {fileID: 202946651464623045}
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_IsExit: 0
|
||||
serializedVersion: 3
|
||||
m_TransitionDuration: 0.25
|
||||
m_TransitionOffset: 0
|
||||
m_ExitTime: 0
|
||||
m_HasExitTime: 1
|
||||
m_HasFixedDuration: 1
|
||||
m_InterruptionSource: 0
|
||||
m_OrderedInterruption: 1
|
||||
m_CanTransitionToSelf: 1
|
||||
8
Assets/Textures/picopark.controller.meta
Normal file
8
Assets/Textures/picopark.controller.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e63fce885a6d97beeb96f5b6928d0f33
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 558 B After Width: | Height: | Size: 506 B |
BIN
Assets/Textures/picopark2.png
Normal file
BIN
Assets/Textures/picopark2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 531 B |
91
Assets/Textures/picopark2.png.meta
Normal file
91
Assets/Textures/picopark2.png.meta
Normal file
@@ -0,0 +1,91 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 967ecca79f754d4419bb4a5cf0532f07
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
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: 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}
|
||||
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: 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: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Textures/picopark3.png
Normal file
BIN
Assets/Textures/picopark3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 531 B |
91
Assets/Textures/picopark3.png.meta
Normal file
91
Assets/Textures/picopark3.png.meta
Normal file
@@ -0,0 +1,91 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7d3681d621a959b8282cf0b61a8d4ba8
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
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: 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}
|
||||
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: 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: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user