...
 
Commits (52)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
public class AlertManager : MonoBehaviour
{
[SerializeField]
GameObject alertObject;
[SerializeField]
Button okButton;
[SerializeField]
Button cancelButton;
[SerializeField]
Text alertText;
Queue<string> alertTextQueue;
private void Awake()
{
Close();
}
// Start is called before the first frame update
void Start()
{
//string[] aa = { "a","b" };
//Alert(aa);
}
// Update is called once per frame
void Update()
{
}
public void Alert(string text,UnityAction ok = null,UnityAction cancel = null)
{
Open();
alertText.text = text;
okButton.onClick.AddListener(Close);
cancelButton.onClick.AddListener(Close);
if(ok != null)
{
okButton.onClick.AddListener(ok);
}
if(cancel != null)
{
cancelButton.onClick.AddListener(cancel);
}
}
public void Alert(IList<string> texts)
{
alertTextQueue = new Queue<string>(texts);
AlertQueue();
}
protected void AlertQueue()
{
if(alertTextQueue.Count >= 2)
{
Alert(alertTextQueue.Dequeue(), AlertQueue, DeleteQueue);
}
else if(alertTextQueue.Count == 1)
{
Alert(alertTextQueue.Dequeue());
}
}
public void DeleteQueue()
{
alertTextQueue.Clear();
}
public void Open()
{
Time.timeScale = 0.0f;
alertObject.SetActive(true);
}
public void Close()
{
Time.timeScale = 1.0f;
okButton.onClick.RemoveAllListeners();
cancelButton.onClick.RemoveAllListeners();
alertObject.SetActive(false);
}
}
fileFormatVersion: 2
guid: fe82d3fd30784eb47b1817cc46e1e205
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using Assets.Scripts.Interface;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Arm : MonoBehaviour
{
public IBody body;
// Start is called before the first frame update
void Start()
{
body = transform.parent.GetComponent<PlayerMovement>();
}
private void OnTriggerEnter(Collider other)
{
body.OnTriggerEnterArm(other);
}
private void OnTriggerExit(Collider other)
{
body.OnTriggerExitArm(other);
}
}
fileFormatVersion: 2
guid: 03095063af092eb48986a2dd734a547d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
%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: Object1Mat 1
m_Shader: {fileID: 4800000, guid: dfb2ef60de11e934f9e7571d2eb7bf08, type: 3}
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
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _StencilMask: 255
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 0.46306542, b: 0, a: 1}
- _CrossColor: {r: 1, g: 0.46264225, b: 0, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _PlaneNormal: {r: 0, g: 1, b: 0, a: 0}
- _PlanePosition: {r: 0, g: 0, b: 0, a: 1}
fileFormatVersion: 2
guid: e66a567e0ab16b347baded88f1041a81
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &4717358246729322577
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 481547545775494362}
- component: {fileID: 8216549582370772806}
- component: {fileID: 1198387274067299882}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &481547545775494362
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4717358246729322577}
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: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -0.5, y: -0.5}
m_SizeDelta: {x: 1, y: 1}
m_Pivot: {x: 0, y: 0}
--- !u!222 &8216549582370772806
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4717358246729322577}
m_CullTransparentMesh: 0
--- !u!114 &1198387274067299882
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4717358246729322577}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0.48235294}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.UI.MaskableGraphic+CullStateChangedEvent, UnityEngine.UI,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
m_Sprite: {fileID: 21300000, guid: 0905f15ba4c169d478723617ce3c4ad1, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
fileFormatVersion: 2
guid: ea897371ce88d8541b961fedac9ceb8e
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -11,8 +11,8 @@ GameObject:
- component: {fileID: 8684657376034186973}
- component: {fileID: 8684657376034186972}
- component: {fileID: 8684657376034186975}
- component: {fileID: 8684657376034186974}
- component: {fileID: 1874320887972760096}
- component: {fileID: 7739621432256159985}
m_Layer: 0
m_Name: PathCollider
m_TagString: Untagged
......@@ -41,7 +41,7 @@ MeshFilter:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8684657376034186961}
m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0}
m_Mesh: {fileID: 10206, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &8684657376034186975
MeshRenderer:
m_ObjectHideFlags: 0
......@@ -59,7 +59,7 @@ MeshRenderer:
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 2100000, guid: 64765095554f11d41abdb4fe591200d6, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
......@@ -67,6 +67,7 @@ MeshRenderer:
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
......@@ -79,20 +80,6 @@ MeshRenderer:
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!136 &8684657376034186974
CapsuleCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8684657376034186961}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
m_Radius: 0.5
m_Height: 2
m_Direction: 1
m_Center: {x: 0, y: 0, z: 0}
--- !u!114 &1874320887972760096
MonoBehaviour:
m_ObjectHideFlags: 0
......@@ -105,3 +92,16 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: b0dc7c4faf7b54448ac8c3d23e40fb14, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!65 &7739621432256159985
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8684657376034186961}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 1.0000001, y: 2.0000005, z: 2.55}
m_Center: {x: 0.000000059604645, y: 0, z: 0}
This diff is collapsed.
fileFormatVersion: 2
guid: cbc6e3e1c08a170489e9a338eee1257f
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Resources/Circle-Grid-1-grey.png

62.6 KB

fileFormatVersion: 2
guid: 86f9680c43bcfc9448ba367952b53dd8
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: 0
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
- serializedVersion: 3
buildTarget: Standalone
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:
File added
fileFormatVersion: 2
guid: dd51184f943375945a40cd1cc4ab4f05
AudioImporter:
externalObjects: {}
serializedVersion: 6
defaultSettings:
loadType: 0
sampleRateSetting: 0
sampleRateOverride: 44100
compressionFormat: 1
quality: 1
conversionMode: 0
platformSettingOverrides: {}
forceToMono: 0
normalize: 1
preloadAudioData: 1
loadInBackground: 0
ambisonic: 0
3D: 1
userData:
assetBundleName:
assetBundleVariant:
%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: New Material 1
m_Shader: {fileID: 10753, 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:
- _AlphaTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _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:
- PixelSnap: 0
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _EnableExternalAlpha: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 0, g: 1, b: 0.06885791, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _Flip: {r: 1, g: 1, b: 1, a: 1}
- _RendererColor: {r: 1, g: 1, b: 1, a: 1}
fileFormatVersion: 2
guid: 64765095554f11d41abdb4fe591200d6
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
Assets/Resources/circlegrid.png

78.2 KB

fileFormatVersion: 2
guid: 0fc4471cd9111ad48a42227a09dacb03
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:
File added
fileFormatVersion: 2
guid: db9a445e4a11ade4d904734fbba0a248
ModelImporter:
serializedVersion: 26
internalIDToNameTable:
- first:
74: 1989289236423521904
second: Default Take
externalObjects: {}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations:
- serializedVersion: 16
name: Default Take
takeName: Default Take
internalID: 1989289236423521904
firstFrame: 0
lastFrame: 249
wrapMode: 0
orientationOffsetY: 0
level: 0
cycleOffset: 0
loop: 0
hasAdditiveReferencePose: 0
loopTime: 0
loopBlend: 0
loopBlendOrientation: 0
loopBlendPositionY: 0
loopBlendPositionXZ: 0
keepOriginalOrientation: 0
keepOriginalPositionY: 1
keepOriginalPositionXZ: 0
heightFromFeet: 0
mirror: 0
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
curves: []
events: []
transformMask: []
maskType: 3
maskSource: {instanceID: 0}
additiveReferencePoseFrame: 0
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 1
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 1
generateSecondaryUV: 1
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
File added
fileFormatVersion: 2
guid: f5ae2cc390973694c87fc0b0d958e2a8
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Assets/Resources/maxresdefault.jpg

64.5 KB

fileFormatVersion: 2
guid: a1ab37bbffba0c04ab3a79374255f0d6
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:
File added
fileFormatVersion: 2
guid: 9f0c3f2807486544e862f3c3ed89f040
ModelImporter:
serializedVersion: 26
internalIDToNameTable:
- first:
74: 1989289236423521904
second: Default Take
externalObjects:
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: unnamed
second: {fileID: 2100000, guid: e66a567e0ab16b347baded88f1041a81, type: 2}
materials:
importMaterials: 1
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations:
- serializedVersion: 16
name: Default Take
takeName: Default Take
internalID: 1989289236423521904
firstFrame: 0
lastFrame: 249
wrapMode: 0
orientationOffsetY: 0
level: 0
cycleOffset: 0
loop: 0
hasAdditiveReferencePose: 0
loopTime: 0
loopBlend: 0
loopBlendOrientation: 0
loopBlendPositionY: 0
loopBlendPositionXZ: 0
keepOriginalOrientation: 0
keepOriginalPositionY: 1
keepOriginalPositionXZ: 0
heightFromFeet: 0
mirror: 0
bodyMask: 01000000010000000100000001000000010000000100000001000000010000000100000001000000010000000100000001000000
curves: []
events: []
transformMask: []
maskType: 3
maskSource: {instanceID: 0}
additiveReferencePoseFrame: 0
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 1
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
swapUVChannels: 0
generateSecondaryUV: 1
useFileUnits: 1
keepQuads: 0
weldVertices: 1
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
copyAvatar: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
animationType: 2
humanoidOversampling: 1
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
File added
fileFormatVersion: 2
guid: a41327ec9318fb34abba6d5c2fd31502
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 09fd81914134c4f4a823ec2102b1bbfb
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 17819fa3b8a4bc74a86a04ff0afd313c
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
This diff is collapsed.
fileFormatVersion: 2
guid: 12692d9cab42fcb40b798b950551a49f
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 75d221baaab6fff42966b5c132c589be
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
......@@ -94,8 +94,8 @@ LightmapSettings:
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1
m_ShowResolutionOverlay: 1
m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData
m_LightingDataAsset: {fileID: 0}
m_UseShadowmask: 1
--- !u!196 &4
......@@ -147,7 +147,7 @@ MonoBehaviour:
m_GameObject: {fileID: 570089817}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1077351063, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
m_Name:
m_EditorClassIdentifier:
m_HorizontalAxis: Horizontal
......@@ -166,7 +166,7 @@ MonoBehaviour:
m_GameObject: {fileID: 570089817}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -619905303, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
m_Name:
m_EditorClassIdentifier:
m_FirstSelected: {fileID: 0}
......@@ -214,7 +214,7 @@ MonoBehaviour:
m_GameObject: {fileID: 624827022}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1301386320, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
......@@ -231,7 +231,7 @@ MonoBehaviour:
m_GameObject: {fileID: 624827022}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1980459831, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 1
......@@ -324,7 +324,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 1, y: 1}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: -37.68, y: -16.68}
m_AnchoredPosition: {x: -37.680054, y: -16.679993}
m_SizeDelta: {x: 75.35, y: 33.35}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &693932814
......@@ -336,7 +336,7 @@ MonoBehaviour:
m_GameObject: {fileID: 693932812}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
......@@ -369,7 +369,18 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 693932815}
m_OnClick:
m_PersistentCalls:
m_Calls: []
m_Calls:
- m_Target: {fileID: 1069768776}
m_MethodName: exit
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!114 &693932815
......@@ -381,7 +392,7 @@ MonoBehaviour:
m_GameObject: {fileID: 693932812}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
......@@ -401,6 +412,7 @@ MonoBehaviour:
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &693932816
CanvasRenderer:
m_ObjectHideFlags: 0
......@@ -482,7 +494,7 @@ Light:
m_BounceIntensity: 1
m_ColorTemperature: 6570
m_UseColorTemperature: 0
m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0}
m_BoundingSphereOverride: {x: 0.48046875, y: 0.19335938, z: 0.265625, w: -0.19335938}
m_UseBoundingSphereOverride: 0
m_ShadowRadius: 0
m_ShadowAngle: 0
......@@ -534,7 +546,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0.0025024414, y: -0.0025177002}
m_AnchoredPosition: {x: 0.0024414062, y: -0.0025024414}
m_SizeDelta: {x: 0.0048828, y: 0.0049744}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &864867384
......@@ -546,7 +558,7 @@ MonoBehaviour:
m_GameObject: {fileID: 864867382}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
......@@ -566,6 +578,7 @@ MonoBehaviour:
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &864867385
CanvasRenderer:
m_ObjectHideFlags: 0
......@@ -622,7 +635,7 @@ MonoBehaviour:
m_GameObject: {fileID: 934511950}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
......@@ -655,7 +668,18 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 934511953}
m_OnClick:
m_PersistentCalls:
m_Calls: []
m_Calls:
- m_Target: {fileID: 1069768776}
m_MethodName: levelselect
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_TypeName: UnityEngine.UI.Button+ButtonClickedEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!114 &934511953
......@@ -667,11 +691,11 @@ MonoBehaviour:
m_GameObject: {fileID: 934511950}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: -765806418, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.098039225, g: 0.10196079, b: 0.1254902, a: 1}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 0
m_OnCullStateChanged:
m_PersistentCalls:
......@@ -687,6 +711,7 @@ MonoBehaviour:
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!222 &934511954
CanvasRenderer:
m_ObjectHideFlags: 0
......@@ -779,6 +804,49 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1069768775
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1069768777}
- component: {fileID: 1069768776}
m_Layer: 0
m_Name: SelectManager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1069768776
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1069768775}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 96c5efcc6eb4ba34fbbba782b8ce6cef, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!4 &1069768777
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1069768775}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 573.505, y: 86.49999, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1076157375
GameObject:
m_ObjectHideFlags: 0
......@@ -825,7 +893,7 @@ MonoBehaviour:
m_GameObject: {fileID: 1076157375}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
......@@ -1031,7 +1099,7 @@ MonoBehaviour:
m_GameObject: {fileID: 1774836756}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
......@@ -1110,7 +1178,7 @@ MonoBehaviour:
m_GameObject: {fileID: 1850030231}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 708705254, guid: f70555f144d8491a825f0804e09c671c, type: 3}
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
......
......@@ -7,6 +7,10 @@ public class CameraMovement : MonoBehaviour
public LevelManager Levelmanager;
public double minSize = 5.0;
public double defaultSize = 10.0;
public double maxSize = 50.0;
Camera thecamera;
double aspect;
double size;
......@@ -16,8 +20,8 @@ public class CameraMovement : MonoBehaviour
{
//playergamma = 1.0f;
thecamera = GetComponent<Camera>();
aspect = 16.0f / 9.0f;
size = 10.0f;
aspect = 16.0 / 9.0;
size = defaultSize;
}
// Update is called once per frame
......@@ -48,4 +52,38 @@ public class CameraMovement : MonoBehaviour
transform.Translate(-Vector3.forward * 50); // number is distance of camera from player
}
}
public double Size
{
get
{
return size;
}
set
{
if(value < minSize)
{
size = minSize;
}
else if (value > maxSize)
{
size = maxSize;
}
else
{
size = value;
}
}
}
/// <summary>
/// size/defaultSize
/// </summary>
public float SizeScale
{
get
{
return (float)size / (float)defaultSize;
}
}
}
\ No newline at end of file
fileFormatVersion: 2
guid: e0ce320f331cd9349a5fcfac34484b83
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
namespace Assets.Scripts.Collision
{
/// <summary>
///
/// </summary>
static class CollisionPreset
{
public static CollisionType[] Player { get; private set; } = {
new CollisionType(ObjectType.player,true),
new CollisionType(ObjectType.normalobject,true),
new CollisionType(ObjectType.interactive,false),
new CollisionType(ObjectType.clock,false),
new CollisionType(ObjectType.wall,true)
};
public static CollisionType[] NormalObject { get; private set; } = {
new CollisionType(ObjectType.player,true),
new CollisionType(ObjectType.normalobject,true),
new CollisionType(ObjectType.interactive,false),
new CollisionType(ObjectType.clock,true),
new CollisionType(ObjectType.wall,true)
};
public static CollisionType[] Interactive { get; private set; } = {
new CollisionType(ObjectType.player,false),
new CollisionType(ObjectType.normalobject,false),
new CollisionType(ObjectType.interactive,false),
new CollisionType(ObjectType.clock,false),
new CollisionType(ObjectType.wall,false)
};
public static CollisionType[] Clock { get; private set; } = {
new CollisionType(ObjectType.player,false),
new CollisionType(ObjectType.normalobject,true),
new CollisionType(ObjectType.interactive,false),
new CollisionType(ObjectType.clock,false),
new CollisionType(ObjectType.wall,true)
};
public static CollisionType[] Wall { get; private set; } = {
new CollisionType(ObjectType.player,false),
new CollisionType(ObjectType.normalobject,false),
new CollisionType(ObjectType.interactive,false),
new CollisionType(ObjectType.clock,false),
new CollisionType(ObjectType.wall,false)
};
}
/// <summary>
/// etc는 직접 어떻게 정할지 정해줘야함.
/// </summary>
public enum PresetType
{
player,
normalobject,
interactive,
wall,
clock,
etc
}
}
fileFormatVersion: 2
guid: 5d01750672178874ea2f4e1213fc3b32
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using Assets.Scripts.Collision;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assets.Scripts.Collision
{
public struct CollisionType
{
public ObjectType other;
public bool isCollision;
public CollisionType(ObjectType other,bool isCollision)
{
this.other = other;
this.isCollision = isCollision;
}
}
}
fileFormatVersion: 2
guid: a4077f36a1fb2fb4fb415d9439b9255a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assets.Scripts.Collision
{
public enum ObjectType
{
player,
normalobject,
interactive,
clock,
wall
}
}
fileFormatVersion: 2
guid: 2834fa3d0a508034a94d787cc74c3d3e
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
File moved
......@@ -27,6 +27,12 @@ public class ExtrudedMesh : MonoBehaviour
private MeshExtrusion.Edge[] precomputedEdges;
int cnt = 0;
FlatlandMovement myMovement;
public Hash128 hash;
static int hashNum = 0;
public class ExtrudedTrailSection
{
public Vector3 point;
......@@ -42,11 +48,15 @@ public class ExtrudedMesh : MonoBehaviour
GetComponent<MeshCollider>().sharedMesh = GetComponent<MeshFilter>().mesh;
prevtime = Time.time;
transform.SetAsFirstSibling();
myMovement = transform.parent.GetComponent<FlatlandMovement>();
hash = Hash128.Compute(gameObject.name + hashNum++);
}
List<ExtrudedTrailSection> sections = new List<ExtrudedTrailSection>();
void LateUpdate()
void FixedUpdate()
{
transform.SetAsFirstSibling();
var position = transform.position;
......@@ -60,6 +70,9 @@ public class ExtrudedMesh : MonoBehaviour
{
var clone = Instantiate(transform.parent.gameObject, transform.parent.position, transform.parent.rotation);
clone.GetComponentInChildren<MeshFilter>().sharedMesh = clone.GetComponentInChildren<MeshFilter>().mesh;
clone.GetComponentInChildren<ExtrudedMesh>().hash = hash;
var x = clone.GetComponents(typeof(Component));
foreach(var t in x)
{
......@@ -72,15 +85,23 @@ public class ExtrudedMesh : MonoBehaviour
; }
if (clone.transform.childCount > 1)
{
DestroyImmediate(clone.transform.GetChild(1).gameObject);
var size = clone.transform.childCount;
for (int i = 1; i < size; ++i)
{
DestroyImmediate(clone.transform.GetChild(1).gameObject);
}
}
DestroyImmediate(clone.GetComponentInChildren<ExtrudedMesh>());
clone.GetComponentInChildren<MeshCollider>().convex = false;
clone.GetComponentInChildren<MeshCollider>().sharedMesh = clone.GetComponentInChildren<MeshFilter>().mesh;
clone.transform.GetChild(0).gameObject.AddComponent<RuntimeCSGFlatlandObject>();
clone.transform.GetChild(0).gameObject.GetComponent<RuntimeCSGFlatlandObject>().original = transform.parent.gameObject.GetComponent<FlatlandMovement>();
clone.transform.GetChild(0).gameObject.GetComponent<RuntimeCSGFlatlandObject>().clock = transform.parent.gameObject.GetComponent<FlatlandMovement>().time;
//clone.transform.GetChild(0).gameObject.GetComponent<RuntimeCSGFlatlandObject>().player = transform.parent.gameObject.GetComponent<FlatlandMovement>().levelManager.player;
clone.layer = 8;
clone.transform.GetChild(0).gameObject.layer = 8;
Destroy(clone, 30);
Physics.IgnoreCollision(clone.GetComponentInChildren<MeshCollider>(), GetComponent<MeshCollider>());
Destroy(clone, 20);
prevtime = sections[sections.Count - 1].time;
}
......@@ -169,26 +190,40 @@ public class ExtrudedMesh : MonoBehaviour
public void OnCollisionStay(Collision collision)
{
if (transform.parent.GetComponent(typeof(FlatlandMovement)) == null)
if (myMovement == null)
{
return;
}
else
transform.parent.GetComponent<FlatlandMovement>().OnCollisionStaychild(collision);
{
myMovement.OnCollisionStaychild(collision);
}
}
public void OnCollisionEnter(Collision collision)
{
if (transform.parent.GetComponent(typeof(FlatlandMovement)) == null)
if (myMovement == null)
{
return;
}
else
transform.parent.GetComponent<FlatlandMovement>().OnCollisionEnterchild(collision);
{
myMovement.OnCollisionEnterchild(collision);
}
}
public void OnCollisionExit(Collision collision)
{
if (transform.parent.GetComponent(typeof(FlatlandMovement)) == null)
if (myMovement == null)
{
return;
}
else
transform.parent.GetComponent<FlatlandMovement>().OnCollisionExitchild(collision);
{
myMovement.OnCollisionExitchild(collision);
}
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Assets.Scripts.Interface;
public class GrabableObject : InteractiveObject
{
public override string InteractType
{
get
{
return "grab";
}
}
public override void OnInteract()
{
return;
}
}
......@@ -2,16 +2,14 @@
using System.Collections.Generic;
using UnityEngine;
public class LevelManager : MonoBehaviour
public class Gridscale : MonoBehaviour
{
public double gamma;
public PlayerMovement player;
public bool winstate = false;
private Vector3 defaultScale;
// Start is called before the first frame update
void Start()
{
winstate = false;
defaultScale = transform.localScale;
}
// Update is called once per frame
......@@ -19,4 +17,12 @@ public class LevelManager : MonoBehaviour
{
}
public float Scale
{
set
{
transform.localScale = defaultScale * value;
}
}
}
fileFormatVersion: 2
guid: 99fc8cfec3b50be41b7fe68464704a73
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace Assets.Scripts.Interface
{
public interface IBody
{
void OnTriggerEnterArm(Collider other);
void OnTriggerExitArm(Collider other);
}
}
fileFormatVersion: 2
guid: c07b41e7277d05c419e5cbdc54dac9dc
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assets.Scripts.Interface
{
public interface IGrabable
{
void OnGrabbed(IGraber graber);
void OnDisGrabbed(IGraber graber);
bool IsGrabbed { get; }
}
}
fileFormatVersion: 2
guid: 845b5f3d9f326274d960d67947d8f987
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
namespace Assets.Scripts.Interface
{
public interface IGraber
{
void OnDisGrab(IGrabable grabed);
void OnGrab(IGrabable grabed);
Vector3 GraberV { get; }
bool IsGrab { get; }
}
}
fileFormatVersion: 2
guid: 981976f1f25218f498f2aa24ae06643b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
......@@ -6,10 +6,11 @@ using System.Threading.Tasks;
namespace Assets.Scripts.Interface
{
interface IInteractable
public interface IInteractable
{
void OnInteract();
void OnInteract(IInteractor interactor);
void OnDisInteract(IInteractor interactor);
string InteractType { get; }
}
}
......@@ -6,8 +6,13 @@ using System.Threading.Tasks;
namespace Assets.Scripts.Interface
{
interface IInteractor
public interface IInteractor
{
void OnInteract();
void OnInteract(IInteractable interactable);
void OnDisInteract(IInteractable interactable);
IGraber IsGraber
{
get;
}
}
}
fileFormatVersion: 2
guid: 28d090e32f2ee964db867d683e0efa36
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ClockLevelManager : LevelManager
{
// Start is called before the first frame update
protected override void Start()
{
ExplanationText = new string[] { "파란색 시계와 빨간색 시계는 20초씩 어긋나 있다.",
"이 둘의 시간 차가 2초 이하가 되게 만들어 서로 붇히면 레벨 Clear!" };
Todo = "빨강 & 파랑 시계 차이가 2초 이하 되게 만들어 붙히기.";
base.Start();
}
}
fileFormatVersion: 2
guid: 964860b1293e755448c6009070e0ef62
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LaserLevelManager : LevelManager
{
double time = 0;
// Start is called before the first frame update
protected override void Start()
{
ExplanationText = new string[]{"오! 시공간 폭풍 속에서 자네를 또 만나게 되었군!",
"이번엔 적수로 만나게 된것 같네.",
"자네가 시공간 폭풍에 의해 선택을 받았다고 해서 내가 봐주지는 않을 것일세.",
"자네가 볼수 있다시피 자네는 3방면에서 같혀있네.",
"그리고 빛의 수호자 나는 강력한 빛을 쏘는 이 붉은 레이저 포를 가지고 있지.",
"그 어떤 것도 빛보다는 빨리 이동할수 없지!",
"심지어 자네는 내가 언제 레이저를 쐈는지도 알수 없다네.",
"대략 15초 뒤에 레이저를 쏠테니 한 번 잘 피해 보게나!",
"게다가 이 레이저는 이 푸른 통로의 두께만큼 크다네.",
"아무리 자네라도 벗어날 수는 없을 것일세!"
};
uiManager.alert.Alert(ExplanationText);
Todo = "15초뒤 통로를 따라 쏴지는 레이저 살아남기";
uiManager.TodoText = Todo;
base.Start();
time = 0;
}
// Update is called once per frame
protected override void Update()
{
if (Input.GetKey("d"))
{
time += Time.deltaTime;
}
if (Input.GetKeyUp("d"))
time = 0;
if (WinCondition())
WinMessage();
base.Update();
}
protected override bool WinCondition()
{
if (time > 10.0)
{
return true;
}
else
return false;
}
protected override bool LoseCondition()
{
if (base.player.time > 15.0)
return true;
else return false;
}
protected bool WinMessage()
{
ExplanationText = new string[]{"... 말도 안되, 어떻게 빛보다 계속 느린데 내 레이저가 따라 잡을 수 없지?",
"역시 시공간 폭풍의 선택을 받은 영웅은 다르군.",
"나의 패배일세."
};
uiManager.alert.Alert(ExplanationText);
Todo = "";
uiManager.TodoText = Todo;
return true;
}
}
fileFormatVersion: 2
guid: e294c7912850770489290e50cf29dc2d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Level1Manager : LevelManager
{
// Start is called before the first frame update
Vector3 orig;
protected override void Start()
{
base.Start();
orig = player.transform.position;
}
protected override bool WinCondition()
{
if(XZLengthSquare(player.transform.position,orig) > 100)
{
return true;
}
else
{
return false;
}
}
float XZLengthSquare(Vector3 a, Vector3 b)
{
return (a.x - b.x) * (a.x - b.x) + (a.z - b.z) * (a.z - b.z);
}
}
fileFormatVersion: 2
guid: 85f33cc515852874d98f6c1e43799fe5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 25cd2abfa3edf8e4298217eba2b3cd46
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 9794ad354f2c68749b41e08724fc3378
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 863d3674af79b2d428796d1d39759169
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: f16f22524f097944c8753aa297ecdb50
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 11c0c0a758005e0408c9a767ec478e97
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
This diff is collapsed.
fileFormatVersion: 2
guid: 37142b9be36036449855b563a41b4337
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
This diff is collapsed.
fileFormatVersion: 2
guid: 0929f04736a5c0c46825d62485feb8be
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Assets.Scripts.ObjectMovement
{
class NormalObject : Planemovement
{
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.