Merge branch 'develop' into feature/yarn_shitou
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,140 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 65a45932c76c5794e8c77d5c52326625
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
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
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
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
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 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
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID: 5e97eb03825dee720800000000000000
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f7301a617a28f2e4eb7ef007fd61fce8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,82 @@
|
||||
title: Start
|
||||
tags:
|
||||
colorID: 8
|
||||
position: 253,-2041
|
||||
---
|
||||
<<jump MemoryTest>>
|
||||
===
|
||||
|
||||
title: MemoryTest
|
||||
tags:
|
||||
---
|
||||
<<load_scene PeipeiFixScene>>
|
||||
<<indoor_new 1>>
|
||||
<<switch_fix_system_to "BodyModule">>
|
||||
<<switch_fix_system_to "Memory">>
|
||||
<<generate_PunchTape ClueManager UF绘图1 UFView ying2-1>>
|
||||
<<CollectionClue ClueManager>>
|
||||
<<generate_PunchTape ClueManager UF绘图2 UFView 记忆占位>>
|
||||
<<CollectionClue ClueManager>>
|
||||
<<generate_PunchTape ClueManager UF绘图3 UFView 海边>>
|
||||
<<CollectionClue ClueManager>>
|
||||
===
|
||||
title: End_memoryPaly
|
||||
tags:
|
||||
colorID: 3
|
||||
position: -1,976
|
||||
---
|
||||
<<MemoryFinished MemoryManager>>
|
||||
===
|
||||
|
||||
title: UF绘图1
|
||||
tags:
|
||||
colorID: 8
|
||||
position: 710,543
|
||||
---
|
||||
<<wait 3>>
|
||||
unknown:你以为自己独一无二,能靠自己的创作让大家喜爱,引领潮流?
|
||||
unknown:历史上所有的创作都记录在UF的数据库里,你凭什么觉得自己比他们的创作更高贵?
|
||||
unknown:你一个月画一张图,UF一晚上画一万张,请给我一个选择你的理由。
|
||||
unknown:记住,机器人就是为了效率而生的,这就是社会的规则,你改变不了!
|
||||
unknown:咚——
|
||||
英主管关门的力气把窗户震碎了,我一块块捡起来。
|
||||
那晚,我只记得……碎成一地的玻璃渣……
|
||||
还有英主管的脸……好红,好烫。
|
||||
<<if visited("UF绘图1")==false>>
|
||||
<<endif>>
|
||||
<<jump End_memoryPaly>>
|
||||
===
|
||||
title: UF绘图2
|
||||
tags:
|
||||
colorID: 8
|
||||
position: 942,543
|
||||
---
|
||||
peipei:到底……画要怎么受欢迎呢?
|
||||
戴纯金雕塑的男人:让我来告诉你吧,只要短裙的长度少1厘米,粉丝的数量就会翻倍噢!
|
||||
戴纯金雕塑头的男人:画技?色彩?艺术?那都是旧时代的垃圾!
|
||||
peipei:可是……
|
||||
戴纯金雕塑头的男人:这是时代潮流,孩子,加入它吧。
|
||||
peipei:可是我画的是半身图。
|
||||
戴纯金雕塑头的男人:呃……那就加大胸部!欧~~派~~~~
|
||||
<<if visited("UF绘图2")==false>>
|
||||
<<endif>>
|
||||
<<jump End_memoryPaly>>
|
||||
===
|
||||
title: UF绘图3
|
||||
tags:
|
||||
colorID: 8
|
||||
position: 1155,543
|
||||
---
|
||||
<<wait 3>>
|
||||
???:这个小镇,恐怕再过几年就要消失吧……
|
||||
???:那时,我们一起去大城市怎么样?
|
||||
???:我们去酒吧找份工作,每天来杯白兰地加冰,和大城市的哥哥姐姐们聊天,他们人一定很有趣。
|
||||
<<wait 1.5>>
|
||||
peipei: 可是……画……
|
||||
???:佩佩,别怕!我知道你话少,到时候我罩着你!
|
||||
peipei: 嗯………………嗯嗯………………嗯!
|
||||
<<wait 1>>
|
||||
<<if visited("UF绘图3")==false>>
|
||||
<<endif>>
|
||||
<<jump End_memoryPaly>>
|
||||
===
|
||||
@@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ccc513ec92e48904c9fcbeebc9638619
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 94073015eacc34c1d8fc6786e43d60ca, type: 3}
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"projectFileVersion": 2,
|
||||
"sourceFiles": [
|
||||
"**/*.yarn"
|
||||
],
|
||||
"excludeFiles": [
|
||||
"**/*~/*"
|
||||
],
|
||||
"localisation": {},
|
||||
"baseLanguage": "zh-CHS",
|
||||
"compilerOptions": {}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d7a6d070b4b54ce4e962604379c72117
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 053561912b1654d80a424bb0696a74ae, type: 3}
|
||||
useAddressableAssets: 0
|
||||
UseUnityLocalisationSystem: 0
|
||||
unityLocalisationStringTableCollection: {instanceID: 0}
|
||||
@@ -62,7 +62,7 @@ position: 43,-97
|
||||
// 我: 关于看蓝天的记忆和UF中的看蓝天记忆一模一样。
|
||||
<<wait 1>>
|
||||
我: 仔细想想……佩佩是在看到什么的时候,导致了UF模块的错误呢?
|
||||
<<EnableQuestion CanvasClueBoard Memory病床>>
|
||||
<<EnableQuestion CanvasClueBoard Memory愤怒的主管>>
|
||||
///这里感觉很奇怪,因为已经得到是视觉的问题了,如果要问具体是什么引起的,那么这个信息最好有价值
|
||||
|
||||
<<endif>>
|
||||
|
||||
@@ -67,7 +67,7 @@ position: 16,782
|
||||
---
|
||||
|
||||
peipei: 还有一件事,我最好还是主动告诉你。
|
||||
me: 啊…什么?
|
||||
me: 是什么事呢,佩佩?
|
||||
peipei: 我不是故意要瞒着的…只是我还以为,这不是什么大问题。
|
||||
peipei: 我也不知道这是什么原理,但是只要我……
|
||||
<<set_Eyetarget EyeManager "sky" false>>
|
||||
@@ -87,6 +87,7 @@ me: 记忆…向视觉发送了数据?然后生成了这些颜色?
|
||||
me: 从来没见过……我需要做更多的症状记录……
|
||||
->放入收藏夹
|
||||
<<CollectionClue ClueManager>>
|
||||
me: 佩佩,这个现象很重要,或许能解释你体内的异常。
|
||||
me: 我需要让你再观察几个东西,你只要重复刚才做的事情就好了。
|
||||
peipei: 好的,医生。
|
||||
<<set $eyeTargetTriggerCount = $eyeTargetTriggerCount + 1>>
|
||||
@@ -105,28 +106,34 @@ position: 245,615
|
||||
<<if $chipmissingKnown==false>>
|
||||
me: ……
|
||||
//me: 不对啊…不是检查仪器的问题。
|
||||
me: 不对啊…难道是检查仪器的问题?
|
||||
me:这就是佩佩眼睛里看到的画面吗?如此灰暗……
|
||||
me:太奇怪了,难道是检查仪器的问题?
|
||||
<<hide_dialog>>
|
||||
<<wait 1>>
|
||||
me: 佩佩,你看到的画面…是黑白的?你怎么没说?
|
||||
me: 佩佩,你眼里的世界……一直都是黑白的吗?
|
||||
<<else>>
|
||||
me: ……
|
||||
me: 果然…她真的看不见颜色。
|
||||
me: 这就是佩佩眼睛里看到的画面吗?如此灰暗……
|
||||
me: 很可能是视觉晶圆失踪造成的。
|
||||
<<hide_dialog>>
|
||||
<<wait 1>>
|
||||
me: 佩佩,你看不见颜色…为什么一直没有说?
|
||||
me: 佩佩,你眼里的世界……一直都是黑白的吗?
|
||||
<<endif>>
|
||||
|
||||
|
||||
|
||||
peipei: 啊,这个是正常现象。
|
||||
peipei: 已经很久啦。我已经不记得是什么时候开始的了,应该是装UF的时候开始的。
|
||||
peipei: 但这不是什么大问题。美工都有这种情况。
|
||||
me: 都?也就是说UF……会导致美工机体失去色觉?
|
||||
me: 这…这一定很难受。
|
||||
peipei: 啊……这个是正常的。
|
||||
peipei: 已经多久了?我自己都记不清什么时候开始的了……应该是装UF的时候吧。
|
||||
peipei: 所有美工都这样,大家都已经适应了,我还……太慢。
|
||||
me: 都?也就是说UF模块一定会让美术同事失去色觉,这……
|
||||
peipei: 还好啦,医生……我们都是这么过来的。
|
||||
peipei: 如果连这都接受不了的话,当初就不应该做美工……这是组长说的。
|
||||
peipei: 这就是成为美工需要承担的。
|
||||
peipei: 如果连这都接受不了的话,当初就不应该做美工……这是英主管说的。
|
||||
peipei: 我没关系的,医生...
|
||||
peipei: 因为...这就是做美工必须承担的呀。
|
||||
me: ……
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<<if $chipmissingKnown==false>>
|
||||
me: 好吧…可是从机体医学的角度来说,这是为什么呢…
|
||||
@@ -182,9 +189,11 @@ position: 1012,611
|
||||
me:佩佩,看到那张海报了么?
|
||||
<<set_EyeState EyeManager "CanImagineColor">>
|
||||
<<set_Eyetarget EyeManager "poster">>
|
||||
peipei: 那是……我的第一张广告画……机颅之美
|
||||
me:哇哦,原来是你画的啊
|
||||
peipei: 唔……我想起来了……英主管生气时脸特别红……
|
||||
peipei: 那是……我的第一张广告画……护肤机油……
|
||||
me:原来这是你画的。
|
||||
peipei: 那是我和英主管第一次沟通。当时,因为我执意要用笔来作画,她非常生气。
|
||||
peipei: 你在电视上应该看不到吧?医生……
|
||||
peipei: 英主管生气时,脸红得像辣椒一样噢。
|
||||
<<EyeEffect_FadeIn EyeManager>>
|
||||
<<hide_dialog>>
|
||||
<<wait 0.5>>
|
||||
|
||||
@@ -185,6 +185,7 @@ unknown:历史上所有的创作都记录在UF的数据库里,你凭什么觉
|
||||
unknown:你一个月画一张图,UF一晚上画一万张,请给我一个选择你的理由。
|
||||
unknown:记住,机器人就是为了效率而生的,这就是社会的规则,你改变不了!
|
||||
unknown:咚——
|
||||
<<shake_camera 0.4 0.3 20>>
|
||||
英主管关门的力气把窗户震碎了,我一块块捡起来。
|
||||
那晚,我只记得……碎成一地的玻璃渣……
|
||||
还有英主管的脸……好红,好烫。
|
||||
@@ -216,13 +217,14 @@ colorID: 8
|
||||
position: 1155,543
|
||||
---
|
||||
<<wait 3>>
|
||||
???:这个小镇,恐怕再过几年就要消失吧……
|
||||
???:那时,我们一起去大城市怎么样?
|
||||
???:我们去酒吧找份工作,每天来杯白兰地加冰,和大城市的哥哥姐姐们聊天,他们人一定很有趣。
|
||||
???: 这个小镇,恐怕再过几年就要消失吧……
|
||||
???: 那时,我们一起去大城市怎么样?
|
||||
???: 我们去酒吧找份工作,每天来杯白兰地加冰,和大城市的哥哥姐姐们聊天,他们人一定很有趣。
|
||||
<<wait 1.5>>
|
||||
peipei: 可是……画……
|
||||
???:佩佩,别怕!我知道你话少,到时候我罩着你!
|
||||
peipei: 嗯………………嗯嗯………………嗯!
|
||||
???: 佩佩,别怕!我知道你话少,到时候我罩着你!
|
||||
peipei: 嗯………………嗯嗯………………
|
||||
peipei: 嗯!
|
||||
<<wait 1>>
|
||||
<<if visited("UF绘图3")==false>>
|
||||
<<set $memoryCount+=1>>
|
||||
|
||||
@@ -93,7 +93,6 @@ position: 249,-1464
|
||||
<<indoor_new 1>>
|
||||
<<character_init_new 佩佩>>
|
||||
|
||||
电子助手:
|
||||
电子助手: 早上好,医生!今天我们来玩抽卡吧!
|
||||
<<show_obj "盲盒">>
|
||||
电子助手: 这个电子盲盒里可以开出各种电子人物!像是“印第安卓·琼斯”、“铁臂阿童木”、“蝴蝶夫人”……
|
||||
@@ -342,8 +341,10 @@ me: 佩佩,不用害怕,很快就会好起来了。
|
||||
me: 我在你的UF模块和视觉模块中各找到了3个记忆卡带。
|
||||
peipei: 记忆卡带是什么?
|
||||
me: 简单地说,它们是一串记忆模块中的索引数据,代表了你在这段过程里回想起来的记忆。
|
||||
me: UF模块的异常原因就藏在这些记忆之中,我需要进一步分析才能和你说结论,可以先麻烦你等一下吗?
|
||||
peipei: 好的医生,没关系,我的时间很多。
|
||||
me: UF模块的异常原因就藏在这些记忆之中,我需要进一步分析才能和你说结论。
|
||||
me: 佩佩,可以麻烦你稍等一会吗?
|
||||
peipei: 英主管说了……我现在没办法胜任工作……
|
||||
peipei: 所以,我的时间很多……等你,医生。
|
||||
<<jump 打开ClueBoard>>
|
||||
===
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
position: -359,-46
|
||||
---
|
||||
<<if $gameStage == 2>>
|
||||
<<jump 第一次检查_肺>>
|
||||
<<jump 检查_肺>>
|
||||
<<endif>>
|
||||
===
|
||||
|
||||
@@ -10,7 +10,7 @@ title: HeartPlugIn
|
||||
position: -79,-46
|
||||
---
|
||||
<<if $gameStage == 2>>
|
||||
<<jump 第一次检查_心>>
|
||||
<<jump 检查_心>>
|
||||
<<endif>>
|
||||
===
|
||||
|
||||
@@ -18,7 +18,7 @@ title: LiverPlugIn
|
||||
position: 204,-46
|
||||
---
|
||||
<<if $gameStage == 2>>
|
||||
<<jump 第一次检查_肝>>
|
||||
<<jump 检查_肝>>
|
||||
<<endif>>
|
||||
===
|
||||
|
||||
@@ -26,7 +26,7 @@ title: StomachPlugIn
|
||||
position: 470,-51
|
||||
---
|
||||
<<if $gameStage == 2>>
|
||||
<<jump 第一次检查_胃>>
|
||||
<<jump 检查_胃>>
|
||||
<<endif>>
|
||||
===
|
||||
|
||||
|
||||
@@ -156,7 +156,8 @@ me: 你好~快乐的送货员~我可以~…可以~……
|
||||
me: 算了。唱歌真的不是我的强项。
|
||||
me: 一个想要跑得更快的送货员吗…嗯……
|
||||
<<OpenProgressWindow WindowManager 查询患者信息 "病人名称:石头 部门:货务部" 2.5>>
|
||||
me: (石头,幸福公司货务部资深画师,在近期工作“机娘与野兽”设定稿中存在严重的拖延情况……)
|
||||
me: (石头,幸福公司货务部运输员,曾连任5届运输标兵,但曾多次违反“禁止在仓库唱歌”条例。)
|
||||
me: ……
|
||||
me: 我可以做一些检查,但不一定让你“跑得更快”。
|
||||
|
||||
shitou: 医生,我不明白哩!
|
||||
|
||||
@@ -32567,7 +32567,7 @@ SpriteRenderer:
|
||||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 0
|
||||
m_SortingOrder: 4
|
||||
m_Sprite: {fileID: -6697397389460088483, guid: 6de0a74e5b5268b4998dc7a5c687fb95, type: 3}
|
||||
m_Sprite: {fileID: -5309117149757345723, guid: fd04c28739017964789d58d573f9fabb, type: 3}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_FlipX: 0
|
||||
m_FlipY: 0
|
||||
@@ -35122,9 +35122,13 @@ PrefabInstance:
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 2.9092307
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1369475798980233471, guid: 92aec29b557d59a4ca5363aadd06c7bb, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: -0.179
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1369475798980233471, guid: 92aec29b557d59a4ca5363aadd06c7bb, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: -3.205
|
||||
value: -3.127
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1489219589270410967, guid: 92aec29b557d59a4ca5363aadd06c7bb, type: 3}
|
||||
propertyPath: m_SortingOrder
|
||||
|
||||
+1510
-945
File diff suppressed because it is too large
Load Diff
@@ -61,26 +61,9 @@ public class ClueInteraction : MonoBehaviour, IPointerEnterHandler, IPointerExit
|
||||
|
||||
public void OnPointerClick(PointerEventData eventData)
|
||||
{
|
||||
// if (isFavorited)
|
||||
// {
|
||||
// Debug.Log("已经收藏,点击查看详情");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// if(GetComponent<Clue>().ClueType==ClueType.PunchTape)
|
||||
// {
|
||||
// FavoritesManager.Instance.AddClue(clueItem.GetClueData());
|
||||
// Destroy(gameObject);
|
||||
// Debug.Log("收藏成功!");
|
||||
// OnInteraction?.Invoke();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// OnInteraction?.Invoke();
|
||||
// }
|
||||
|
||||
|
||||
// }
|
||||
// if (!isFavorited||isLocked) return;
|
||||
// transform.position = Input.mousePosition+new Vector3(0,200,0);
|
||||
// transform.rotation = Quaternion.Euler(0, 0, -90f);
|
||||
}
|
||||
|
||||
public void OnBeginDrag(PointerEventData eventData)
|
||||
@@ -89,6 +72,8 @@ public class ClueInteraction : MonoBehaviour, IPointerEnterHandler, IPointerExit
|
||||
|
||||
transform.SetParent(canvas.transform);
|
||||
GetComponent<CanvasGroup>().blocksRaycasts = false;
|
||||
slot.coverOpen.enabled=true;
|
||||
slot.coverClose.enabled=false;
|
||||
}
|
||||
|
||||
public void OnDrag(PointerEventData eventData)
|
||||
@@ -101,11 +86,8 @@ public class ClueInteraction : MonoBehaviour, IPointerEnterHandler, IPointerExit
|
||||
|
||||
public void OnEndDrag(PointerEventData eventData)
|
||||
{
|
||||
slot.OnDrop(eventData);
|
||||
|
||||
if (!isFavorited||isLocked) return;
|
||||
|
||||
|
||||
if (transform.parent == canvas.transform)
|
||||
{
|
||||
ReturnToOriginalPosition();
|
||||
@@ -115,6 +97,8 @@ public class ClueInteraction : MonoBehaviour, IPointerEnterHandler, IPointerExit
|
||||
|
||||
public void ReturnToOriginalPosition()
|
||||
{
|
||||
slot.coverOpen.enabled=false;
|
||||
slot.coverClose.enabled=true;
|
||||
isLocked=false;
|
||||
transform.rotation = Quaternion.Euler(0, 0, 0);
|
||||
transform.SetParent(originalParent);
|
||||
@@ -129,13 +113,14 @@ public class ClueInteraction : MonoBehaviour, IPointerEnterHandler, IPointerExit
|
||||
public void SetClueParentAndPosition(Transform newParent)
|
||||
{
|
||||
isLocked=true;
|
||||
rectTransform.SetParent(newParent);
|
||||
// rectTransform.anchorMin = Vector2.zero;
|
||||
// rectTransform.anchorMax = Vector2.one;
|
||||
// rectTransform.offsetMin = Vector2.zero;
|
||||
// rectTransform.offsetMax = Vector2.zero;
|
||||
rectTransform.pivot = new Vector2(0.5f, 0.5f);
|
||||
transform.localPosition = Vector3.zero;
|
||||
Destroy(this.gameObject);
|
||||
// rectTransform.SetParent(newParent);
|
||||
// // rectTransform.anchorMin = Vector2.zero;
|
||||
// // rectTransform.anchorMax = Vector2.one;
|
||||
// // rectTransform.offsetMin = Vector2.zero;
|
||||
// // rectTransform.offsetMax = Vector2.zero;
|
||||
// rectTransform.pivot = new Vector2(0.5f, 0.5f);
|
||||
// transform.localPosition = Vector3.zero;
|
||||
}
|
||||
|
||||
public void SetIsFavorited(bool isFavorited)
|
||||
|
||||
@@ -29,8 +29,8 @@ public class ClueSlotBase : MonoBehaviour, IDropHandler
|
||||
protected virtual void Start()
|
||||
{
|
||||
currentClueItem = null;
|
||||
coverClose.enabled=false;
|
||||
coverOpen.enabled=true;
|
||||
coverClose.enabled=true;
|
||||
coverOpen.enabled=false;
|
||||
punchTapeImage.enabled=false;
|
||||
punchtapeStartpos=punchTapeImage.rectTransform;
|
||||
//slotFrame.color=Color.white;
|
||||
@@ -51,17 +51,15 @@ public void OnDrop(PointerEventData eventData)
|
||||
|
||||
if (clue != null && interaction != null&&!isOccupied)
|
||||
{
|
||||
interaction.SetIsLock(true);
|
||||
interaction.SetClueParentAndPosition(transform);
|
||||
// 更新当前的 ClueItem
|
||||
currentClueItem = clueItem;
|
||||
isOccupied = true;
|
||||
Destroy(clueItem);
|
||||
punchTapeImage.enabled=true;
|
||||
punchTapeImage.rectTransform.DOAnchorPosY(-473f,2f)
|
||||
.OnComplete(() =>
|
||||
{
|
||||
punchTapeImage.enabled=false;
|
||||
|
||||
punchTapeImage.rectTransform.DOAnchorPosY(-3f,0.1f);
|
||||
OnClueInserted(clue);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user