Add Talking Game

This commit is contained in:
Project Unity 2025-11-18 05:08:27 +08:00
parent e203f0aa3d
commit 97e6f2eb1e
46 changed files with 55925 additions and 127 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -0,0 +1,143 @@
fileFormatVersion: 2
guid: 69152143e9362ba4faa3301f7b06b9fc
TextureImporter:
internalIDToNameTable:
- first:
213: 4332438821327173406
second: client-send-btn_0
externalObjects: {}
serializedVersion: 13
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: 2
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: 4
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: 4
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
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: client-send-btn_0
rect:
serializedVersion: 2
x: 88
y: 38
width: 186
height: 83
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: e17715c572aef1c30800000000000000
internalID: 4332438821327173406
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
client-send-btn_0: 4332438821327173406
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

View File

@ -0,0 +1,143 @@
fileFormatVersion: 2
guid: 9b17e429bed3a854fa5a39c2306f8a9a
TextureImporter:
internalIDToNameTable:
- first:
213: -3747352213844289487
second: client-survey-bg_0
externalObjects: {}
serializedVersion: 13
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: 2
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: 4
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: 4
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
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: client-survey-bg_0
rect:
serializedVersion: 2
x: 0
y: 0
width: 1080
height: 1920
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 138998d040bbefbc0800000000000000
internalID: -3747352213844289487
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
client-survey-bg_0: -3747352213844289487
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

View File

@ -0,0 +1,143 @@
fileFormatVersion: 2
guid: 7a46b7755fe1cc5419eb8d169dabee83
TextureImporter:
internalIDToNameTable:
- first:
213: -4698616107221523762
second: client-words-bg_0
externalObjects: {}
serializedVersion: 13
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: 2
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: 4
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: 4
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
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: client-words-bg_0
rect:
serializedVersion: 2
x: 0
y: 0
width: 1080
height: 1920
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: ec2e1297b892bceb0800000000000000
internalID: -4698616107221523762
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
client-words-bg_0: -4698616107221523762
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -0,0 +1,143 @@
fileFormatVersion: 2
guid: 789758db89acf334abac2e82b3cd8c0a
TextureImporter:
internalIDToNameTable:
- first:
213: 2088223337295312663
second: server-game-talking-bg_0
externalObjects: {}
serializedVersion: 13
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: 2
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: 4
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: 4
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
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: server-game-talking-bg_0
rect:
serializedVersion: 2
x: 0
y: 0
width: 1620
height: 678
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 717fa27bf0cdafc10800000000000000
internalID: 2088223337295312663
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
server-game-talking-bg_0: 2088223337295312663
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

View File

@ -0,0 +1,143 @@
fileFormatVersion: 2
guid: c390b74521767074ca327eb68cca68cf
TextureImporter:
internalIDToNameTable:
- first:
213: 3206059080574238972
second: server-last-words-bg_0
externalObjects: {}
serializedVersion: 13
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: 2
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: 4
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: 4
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
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: server-last-words-bg_0
rect:
serializedVersion: 2
x: 6
y: 13
width: 1809
height: 706
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: cf00b825fb53e7c20800000000000000
internalID: 3206059080574238972
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
server-last-words-bg_0: 3206059080574238972
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

View File

@ -0,0 +1,143 @@
fileFormatVersion: 2
guid: 6e7036b6d3f95ec4da42e4471ff96b8b
TextureImporter:
internalIDToNameTable:
- first:
213: 8483469168733599284
second: server-message-reply-btn_0
externalObjects: {}
serializedVersion: 13
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: 2
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: 4
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: 4
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
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: server-message-reply-btn_0
rect:
serializedVersion: 2
x: 0
y: 0
width: 160
height: 80
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 4363859f2465bb570800000000000000
internalID: 8483469168733599284
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
server-message-reply-btn_0: 8483469168733599284
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 729 B

View File

@ -0,0 +1,143 @@
fileFormatVersion: 2
guid: 87e27a2cd6adc6c4c95b89008720d238
TextureImporter:
internalIDToNameTable:
- first:
213: 8781009888660129380
second: server-power-add-btn_0
externalObjects: {}
serializedVersion: 13
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: 2
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: 4
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: 4
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
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: server-power-add-btn_0
rect:
serializedVersion: 2
x: 2
y: 3
width: 43
height: 43
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 46687ce48f96cd970800000000000000
internalID: 8781009888660129380
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
server-power-add-btn_0: 8781009888660129380
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

View File

@ -0,0 +1,143 @@
fileFormatVersion: 2
guid: 64502c473a4a1fa47ad7e74a92c998e3
TextureImporter:
internalIDToNameTable:
- first:
213: -4081125098898208117
second: server-power-mitter-bg_0
externalObjects: {}
serializedVersion: 13
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: 2
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: 4
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: 4
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
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: server-power-mitter-bg_0
rect:
serializedVersion: 2
x: 0
y: 0
width: 400
height: 369
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: b8acd34685eec57c0800000000000000
internalID: -4081125098898208117
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
server-power-mitter-bg_0: -4081125098898208117
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B

View File

@ -0,0 +1,143 @@
fileFormatVersion: 2
guid: 2fd0621f2cd5f094eb5f83d5b81a2f88
TextureImporter:
internalIDToNameTable:
- first:
213: -8522805946472419417
second: server-power-remove_0
externalObjects: {}
serializedVersion: 13
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: 2
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: 4
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: 4
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
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: server-power-remove_0
rect:
serializedVersion: 2
x: 2
y: 3
width: 43
height: 43
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: 7afaceeb529e8b980800000000000000
internalID: -8522805946472419417
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
server-power-remove_0: -8522805946472419417
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -0,0 +1,143 @@
fileFormatVersion: 2
guid: 3c34f482cd33efc4fadc01b5f3b26cd1
TextureImporter:
internalIDToNameTable:
- first:
213: -6078499400711305652
second: server-power-submit-btn_0
externalObjects: {}
serializedVersion: 13
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: 2
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: 4
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: 4
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
spriteSheet:
serializedVersion: 2
sprites:
- serializedVersion: 2
name: server-power-submit-btn_0
rect:
serializedVersion: 2
x: 0
y: 0
width: 116
height: 58
alignment: 0
pivot: {x: 0, y: 0}
border: {x: 0, y: 0, z: 0, w: 0}
customData:
outline: []
physicsShape: []
tessellationDetail: -1
bones: []
spriteID: c468d251005d4aba0800000000000000
internalID: -6078499400711305652
vertices: []
indices:
edges: []
weights: []
outline: []
customData:
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable:
server-power-submit-btn_0: -6078499400711305652
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant:

View File

Before

Width:  |  Height:  |  Size: 1.3 MiB

After

Width:  |  Height:  |  Size: 1.3 MiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -50,7 +50,10 @@ public class ClientGameBackToRealSceneController : MonoBehaviour
void OnVideoFinished(VideoPlayer vp)
{
Debug.Log("影片播放完成,準備跳轉");
StartCoroutine(LoadNextScene());
if (!string.IsNullOrEmpty(ClientLastWordsSceneController.words))
{
StartCoroutine(LoadNextScene());
}
}
public IEnumerator LoadNextScene()

View File

@ -36,16 +36,28 @@ public class ClientGameSceneController : MonoBehaviour
private void goSticksButton_onClicked()
{
if(ClientMessageHandler.Instance)
{
ClientMessageHandler.Instance.SendMessageToServer("gameOpen", "sticks");
}
StartCoroutine(LoadNextScene("ClientGameSticksScene"));
}
private void goTypingButton_onClicked()
{
if (ClientMessageHandler.Instance)
{
ClientMessageHandler.Instance.SendMessageToServer("gameOpen", "typing");
}
StartCoroutine(LoadNextScene("ClientGameTypingScene"));
}
private void goTalkingButton_onClicked()
{
if (ClientMessageHandler.Instance)
{
ClientMessageHandler.Instance.SendMessageToServer("gameOpen", "talking");
}
StartCoroutine(LoadNextScene("ClientGameTalkingScene"));
}

View File

@ -1,3 +1,4 @@
using System;
using System.Collections;
using TMPro;
using UnityEngine;
@ -22,6 +23,8 @@ public class ClientGameTalkingSceneController : MonoBehaviour
public Button finishGoToNextButton;
public Button finishBackToMenuButton;
private int playCountdownSecVal = 120;
private void Awake()
{
Instance = this;
@ -37,12 +40,66 @@ public class ClientGameTalkingSceneController : MonoBehaviour
{
finishBackToMenuButton.onClick.AddListener(finishBackToMenuButton_onClicked);
}
if (playMessageSendButton)
{
playMessageSendButton.onClick.AddListener(playMessageSendButton_onClicked);
}
processStep(4);
processStep(1);
}
private void playMessageSendButton_onClicked()
{
if (playMessageInputField.text.Length > 0)
{
if (ClientMessageHandler.Instance)
{
ClientMessageHandler.Instance.SendMessageToServer("gameTalkingPeopleSay", playMessageInputField.text);
}
playChatText.text = "<align=\"right\"><color=#63584A>-«H²³-<br>" + playMessageInputField.text + "</color></align><br>" + playChatText.text;
playMessageInputField.text = "";
}
}
public void onReceivedChatMessage(string message)
{
playChatText.text = "-¯«©ú-<br>" + message + "<br>" + playChatText.text;
}
IEnumerator StatusCountdown()
{
yield return new WaitForSeconds(1f);
playCountdownSecVal--;
playCountdownText.text = "®É¶¡­Ë¼Æ " + playCountdownSecVal.ToString() + "¬í";
if (playCountdownSecVal > 0)
{
StartCoroutine(StatusCountdown());
}
else
{
processStep(3);
}
}
IEnumerator NextStep(int step, int waitSec)
{
yield return new WaitForSeconds(waitSec);
processStep(step);
}
private void finishGoToNextButton_onClicked()
{
if (ClientMessageHandler.Instance)
{
ClientMessageHandler.Instance.SendMessageToServer("getWords", "");
}
StartCoroutine(LoadNextScene("ClientGameBackToRealScene"));
}
@ -56,15 +113,28 @@ public class ClientGameTalkingSceneController : MonoBehaviour
if (introPanel)
{
introPanel.SetActive( step == 1 );
playCount++;
if (step == 1)
{
playCount++;
playCountdownSecVal = 120;
}
}
if (playPanel)
{
playPanel.SetActive ( step == 2 );
if (step == 2)
{
StartCoroutine(StatusCountdown());
}
}
if (stopPanel)
{
stopPanel.SetActive ( step == 3 );
if (step == 3)
{
StartCoroutine(NextStep(4, 3));
}
}
if (finishPanel)
{

View File

@ -1,5 +1,6 @@
using System;
using System.Collections;
using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
@ -7,12 +8,14 @@ using UnityEngine.UI;
public class ClientLastWordsSceneController : MonoBehaviour
{
public static ClientLastWordsSceneController Instance;
public static string words;
public GameObject wordsPanel;
public GameObject surveyPanel;
public Button wordsNextButton;
public Button surveySubmitButton;
public TMP_Text wordsText;
private void Awake()
{
@ -29,11 +32,35 @@ public class ClientLastWordsSceneController : MonoBehaviour
{
surveySubmitButton.onClick.AddListener(surveySubmitButton_onClick);
}
init();
}
public void init()
{
processStep(1);
if (wordsText)
{
wordsText.text = words;
}
}
private void surveySubmitButton_onClick()
{
if (ClientMessageHandler.Instance)
{
GameMessageSurvey msgObj = new GameMessageSurvey {
val1 = 1,
val2 = 2,
val3 = 3,
text1 = ""
};
string payload = JsonUtility.ToJson(msgObj);
ClientMessageHandler.Instance.SendMessageToServer("gameSurveyFinish", payload);
}
StartCoroutine(LoadNextScene());
}
@ -44,7 +71,7 @@ public class ClientLastWordsSceneController : MonoBehaviour
public void processStep(int step)
{
if (wordsPanel != null)
if (wordsPanel)
{
wordsPanel.SetActive(step == 1);
}

View File

@ -31,7 +31,7 @@ public class ClientMessageHandler : MonoBehaviour
void OnServerMessageReceived(GameMessage msg)
{
Debug.Log($"¦¬¨ì Server °T®§: {msg.payload}");
Debug.Log($"¦¬¨ì Server °T®§: {msg.action} {msg.payload}");
try
{
@ -47,6 +47,7 @@ public class ClientMessageHandler : MonoBehaviour
// clean data
ClientWorkMessageHandleSceneController.cleanData();
ClientWorkMessageHandleSceneController.messageResultCount = 0;
ClientLastWordsSceneController.words = "";
if (ClientHomeWaittingSceneController.Instance != null)
{
@ -73,6 +74,35 @@ public class ClientMessageHandler : MonoBehaviour
}
}
break;
case "gameFinalWords":
{
if (string.IsNullOrEmpty(ClientLastWordsSceneController.words))
{
ClientLastWordsSceneController.words = msg.payload;
if (ClientGameBackToRealSceneController.Instance)
{
StartCoroutine( ClientGameBackToRealSceneController.Instance.LoadNextScene());
}
}
}
break;
case "gameTalkingStart":
{
if (ClientGameTalkingSceneController.Instance)
{
ClientGameTalkingSceneController.Instance.processStep(2);
}
}
break;
case "gameTalkingGodSay":
{
if (ClientGameTalkingSceneController.Instance)
{
ClientGameTalkingSceneController.Instance.onReceivedChatMessage(msg.payload);
}
}
break;
}
}
catch (Exception e)

View File

@ -28,7 +28,7 @@ public class NetworkMessageHandler : MonoBehaviour
void OnClientMessageReceived(NetworkConnectionToClient conn, GameMessage msg)
{
Debug.Log($"¦¬¨ì«È¤áºÝ°T®§: {msg.payload}");
Debug.Log($"¦¬¨ì«È¤áºÝ°T®§: {msg.action} {msg.payload}");
switch (msg.action)
{
@ -136,7 +136,52 @@ public class NetworkMessageHandler : MonoBehaviour
}
break;
case "gameOpen":
{
ServerGamePanel.nameOfTheGameWillBeOpened = msg.payload;
if (ServerGamePanel.Instance)
{
ServerGamePanel.Instance.gameOpen();
}
}
break;
case "getWords":
{
if (ServerWorkSceneController.Instance)
{
ServerWorkSceneController.Instance.processStep(18);
}
}
break;
case "gameSurveyFinish":
{
GameMessageSurvey msgObj = JsonUtility.FromJson<GameMessageSurvey>(msg.payload);
if (msgObj != null)
{
ServerWorkMessageReplyExitSurveyPanel.val1 = msgObj.val1;
ServerWorkMessageReplyExitSurveyPanel.val2 = msgObj.val2;
ServerWorkMessageReplyExitSurveyPanel.val3 = msgObj.val3;
ServerWorkMessageReplyExitSurveyPanel.text1 = msgObj.text1;
if (ServerWorkSceneController.Instance)
{
ServerWorkSceneController.Instance.processStep(19);
}
//if (ServerWorkGameFinalPanel.Instance)
//{
//ServerWorkGameFinalPanel.Instance.loadSurveyData();
//}
}
}
break;
case "gameTalkingPeopleSay":
{
if (ServerGameTalkingPanel.Instance)
{
ServerGameTalkingPanel.Instance.onReceivedChatMessage(msg.payload);
}
}
break;
}

View File

@ -0,0 +1,48 @@
using System;
using System.Collections;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class ServerGameFinalSurveyPanel : MonoBehaviour
{
public static ServerGameFinalSurveyPanel Instance;
public static string val1;
public static string val2;
public static string val3;
public static string text1;
public Button okButton;
private void Awake()
{
Instance = this;
}
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
if (okButton)
{
okButton.onClick.AddListener(okButton_onClicked);
}
}
private void okButton_onClicked()
{
if (ServerWorkSceneController.Instance)
{
ServerWorkSceneController.Instance.processStep(11);
}
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 6e00fe1d4cd4ccb42bbd9e40a513aeca

View File

@ -7,10 +7,7 @@ using UnityEngine.UI;
public class ServerGamePanel : MonoBehaviour
{
public static ServerGamePanel Instance;
public Button goTalkingButton;
public Button goTypingButton;
public Button goStricksButton;
public static string nameOfTheGameWillBeOpened = string.Empty;
private void Awake()
{
@ -20,34 +17,29 @@ public class ServerGamePanel : MonoBehaviour
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
if (goTalkingButton)
gameOpen();
}
public void gameOpen()
{
if (ServerWorkSceneController.Instance == null)
{
goTalkingButton.onClick.AddListener(goTalkingButton_onClicked);
return;
}
if (goTypingButton)
switch (nameOfTheGameWillBeOpened)
{
goTypingButton.onClick.AddListener(goTypingButton_onClicked);
}
if (goStricksButton)
{
goStricksButton.onClick.AddListener(goStricksButton_onClicked);
case "talking":
ServerWorkSceneController.Instance.processStep(14);
break;
case "typing":
ServerWorkSceneController.Instance.processStep(15);
break;
case "sticks":
ServerWorkSceneController.Instance.processStep(16);
break;
}
}
private void goStricksButton_onClicked()
{
}
private void goTypingButton_onClicked()
{
}
private void goTalkingButton_onClicked()
{
}
IEnumerator LoadNextScene(string sceneName)
{

View File

@ -1,4 +1,5 @@
using System;
using System.Collections;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
@ -17,6 +18,24 @@ public class ServerGameTalkingPanel : MonoBehaviour
public TMP_InputField playInputField;
public TMP_Text playChatText;
public Button playSendButton;
public TMP_Text statusText;
public Button sample1Button;
public Button sample2Button;
public Button sample3Button;
public Button sample4Button;
public Button sample5Button;
private int gameTimeCountdownSecVal = 100;
private string[] sampleTexts = {
"汝行街上,見一老嫗跌倒,身旁五千金鈔隨風散。若只得一瞬之舉,汝先救人,抑或先拾錢?",
"汝見一孩以假幣買食,攤主未覺。若揭穿,孩餓;若不言,誤教。汝何選?",
"友人誤將重物砸壞汝物,卻以為無人知曉。汝心明白真相,是當面直言,還是靜默讓他安?",
"汝於雨夜撞傷野貓,車無損,人未見。汝會停車查看,抑或遠去以免麻煩?",
"汝在工廠,知上司指示排放廢水入河,若揭發,恐遭解雇;若隱瞞,公司利潤倍增。汝何解?"
};
private void Awake()
{
@ -26,14 +45,142 @@ public class ServerGameTalkingPanel : MonoBehaviour
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
SetupIntroVideoPlayer();
if (playSendButton)
{
playSendButton.onClick.AddListener(playSendButton_onClick);
}
if (sample1Button)
{
sample1Button.onClick.AddListener(sample1Button_onClick);
}
if (sample2Button)
{
sample2Button.onClick.AddListener(sample2Button_onClick);
}
if (sample3Button)
{
sample3Button.onClick.AddListener(sample3Button_onClick);
}
if (sample4Button)
{
sample4Button.onClick.AddListener(sample4Button_onClick);
}
if (sample5Button)
{
sample5Button.onClick.AddListener(sample5Button_onClick);
}
}
private void sample5Button_onClick()
{
playInputField.text = sampleTexts[4];
}
private void sample4Button_onClick()
{
playInputField.text = sampleTexts[3];
}
private void sample3Button_onClick()
{
playInputField.text = sampleTexts[2];
}
private void sample2Button_onClick()
{
playInputField.text = sampleTexts[1];
}
private void sample1Button_onClick()
{
playInputField.text = sampleTexts[0];
}
public void init()
{
processStep(1);
if (introVideoPlayer)
{
introVideoPlayer.Play();
}
}
void SetupIntroVideoPlayer()
{
if (introVideoPlayer != null)
{
// 設置影片結束事件
introVideoPlayer.loopPointReached += OnIntroVideoFinished;
// 設置影片顯示
if (introVideoPlayer != null)
{
introVideoPlayer.targetTexture = null;
introVideoPlayer.renderMode = VideoRenderMode.RenderTexture;
RenderTexture rt = new RenderTexture(1920, 1080, 24);
introVideoPlayer.targetTexture = rt;
introRawImage.texture = rt;
}
}
}
void OnIntroVideoFinished(VideoPlayer vp)
{
Debug.Log("影片播放完成");
//StartCoroutine(LoadNextScene());
processStep(2);
}
public void onReceivedChatMessage(string message)
{
playChatText.text = "-信眾-<br>" + message + "<br>" + playChatText.text;
}
private void playSendButton_onClick()
{
if (playInputField.text.Length > 0)
{
if (NetworkMessageHandler.Instance)
{
NetworkMessageHandler.Instance.SendMessageToClient("gameTalkingGodSay", playInputField.text);
}
playChatText.text = "<align=\"right\"><color=#63584A>-神明-<br>" + playInputField.text + "</color></align><br>" + playChatText.text;
playInputField.text = "";
}
}
IEnumerator GameTimeCountdown()
{
yield return new WaitForSeconds(1f);
if (gameTimeCountdownSecVal == 100)
{
if (NetworkMessageHandler.Instance)
{
NetworkMessageHandler.Instance.SendMessageToClient("gameTalkingStart", "");
}
}
gameTimeCountdownSecVal--;
statusText.text = "倒計時 : <color=\"red\">" + gameTimeCountdownSecVal.ToString() + "</color>s";
if (gameTimeCountdownSecVal > 0)
{
StartCoroutine(GameTimeCountdown());
}
else
{
if (ServerWorkSceneController.Instance)
{
ServerWorkSceneController.Instance.processStep(17); // go to gameWaittingPanel
}
}
}
@ -42,10 +189,24 @@ public class ServerGameTalkingPanel : MonoBehaviour
if (introPanel)
{
introPanel.SetActive(step == 1);
if (step == 1)
{
gameTimeCountdownSecVal = 100;
}
}
if (playPanel)
{
playPanel.SetActive(step == 2);
if (step == 2)
{
playChatText.text = "";
if (statusText.text == "--")
{
statusText.text = "倒計時 : <color=\"red\">" + gameTimeCountdownSecVal.ToString() + "</color>s";
StartCoroutine(GameTimeCountdown());
}
}
}
}

View File

@ -0,0 +1,54 @@
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Video;
public class ServerGameWaittingPanel : MonoBehaviour
{
public static ServerGameWaittingPanel Instance;
public VideoPlayer introVideoPlayer;
public RawImage introRawImage;
void SetupIntroVideoPlayer()
{
if (introVideoPlayer != null)
{
// 設置影片結束事件
introVideoPlayer.loopPointReached += OnIntroVideoFinished;
// 設置影片顯示
if (introVideoPlayer != null)
{
introVideoPlayer.isLooping = true;
introVideoPlayer.targetTexture = null;
introVideoPlayer.renderMode = VideoRenderMode.RenderTexture;
RenderTexture rt = new RenderTexture(1920, 1080, 24);
introVideoPlayer.targetTexture = rt;
introRawImage.texture = rt;
}
}
}
void OnIntroVideoFinished(VideoPlayer vp)
{
//Debug.Log("影片播放完成");
//StartCoroutine(LoadNextScene());
}
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
SetupIntroVideoPlayer();
if (introVideoPlayer)
{
introVideoPlayer.Play();
}
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 3dc2b4d3dc29c4c4a88cefc2d7eb168b

View File

@ -0,0 +1,202 @@
using System;
using TMPro;
using Unity.VisualScripting;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Video;
public class ServerWorkGameFinalPanel : MonoBehaviour
{
public static ServerWorkGameFinalPanel Instance;
private int currentSampleWordsIndex = 0;
private string[] sampleWords = {
"福在心間非遠方行誠一步百事昌天開一線容人渡前路微光漸放芒",
"命裡有時終必至急行反失遠行期靜看潮起潮又落好風自會送舟歸",
"心誠萬事皆能順莫急莫慌自有門天道酬勤終不負善念長存歸本根",
"汝問蒼天天不語早知汝路自難移命數原非神可改徒然叩首費心思",
"求財無財空添亂問愛無愛更心煩問命問天徒自苦不如回家補個眠"
};
public GameObject introPanel;
public GameObject replyPanel;
public GameObject waittingPanel;
public Button introReplyButton;
public TMP_Text introMessageTypeText;
public TMP_Text introMessageText;
public TMP_Text introPresentText;
public Button wordsSubmitButton;
public Button wordsLeftButton;
public Button wordsRightButton;
public TMP_InputField wordsInputField;
public TMP_Text wordsMessageTypeText;
public TMP_Text wordsMessageText;
public TMP_Text wordsPresentText;
public VideoPlayer waittingVideoPlayer;
public RawImage waittingRawImage;
private void Awake()
{
Instance = this;
}
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
if (introReplyButton)
{
introReplyButton.onClick.AddListener(introReplyButton_onClicked);
}
if (wordsLeftButton)
{
wordsLeftButton.onClick.AddListener(wordsLeftButton_onClicked);
}
if (wordsRightButton)
{
wordsRightButton.onClick.AddListener(wordsRightButton_onClicked);
}
if (wordsSubmitButton)
{
wordsSubmitButton.onClick.AddListener(wordsSubmitButton_onClicked);
}
SetupIntroVideoPlayer();
//init();
}
void SetupIntroVideoPlayer()
{
if (waittingVideoPlayer != null)
{
// 設置影片結束事件
waittingVideoPlayer.loopPointReached += OnIntroVideoFinished;
// 設置影片顯示
if (waittingVideoPlayer != null)
{
waittingVideoPlayer.isLooping = true;
waittingVideoPlayer.targetTexture = null;
waittingVideoPlayer.renderMode = VideoRenderMode.RenderTexture;
RenderTexture rt = new RenderTexture(1920, 1080, 24);
waittingVideoPlayer.targetTexture = rt;
waittingRawImage.texture = rt;
}
}
}
void OnIntroVideoFinished(VideoPlayer vp)
{
//Debug.Log("影片播放完成");
//StartCoroutine(LoadNextScene());
}
private void wordsSubmitButton_onClicked()
{
if (string.IsNullOrEmpty(wordsInputField.text))
{
wordsInputField.text = sampleWords[0];
}
NetworkMessageHandler.Instance.SendMessageToClient("gameFinalWords", wordsInputField.text);
processStep(3);
}
private void wordsRightButton_onClicked()
{
if (wordsInputField)
{
currentSampleWordsIndex++;
if (currentSampleWordsIndex >= sampleWords.Length)
currentSampleWordsIndex = sampleWords.Length - 1;
wordsInputField.text = sampleWords[currentSampleWordsIndex];
}
}
private void wordsLeftButton_onClicked()
{
if (wordsInputField)
{
currentSampleWordsIndex--;
if (currentSampleWordsIndex < 0)
currentSampleWordsIndex = 0;
wordsInputField.text = sampleWords[currentSampleWordsIndex];
}
}
private void introReplyButton_onClicked()
{
processStep(2);
}
public void init()
{
processStep(1);
}
// Update is called once per frame
void Update()
{
}
public void processStep(int step)
{
if (introPanel)
{
introPanel.SetActive(step == 1);
if (step == 1)
{
if (introMessageTypeText)
{
switch (ServerWorkMessagePanel.workMessageType)
{
case "TypeMoneyButton":
introMessageTypeText.text = "財運";
break;
case "TypeHealthButton":
introMessageTypeText.text = "健康";
break;
case "TypeLoveButton":
introMessageTypeText.text = "愛情";
break;
default: // "TypeWorkButton"
introMessageTypeText.text = "工作";
break;
}
}
if (introMessageText)
{
introMessageText.text = ServerWorkMessagePanel.workMessage;
}
if (introPresentText)
{
introPresentText.text = ServerWorkMessagePanel.workPresent;
}
}
else
{
}
}
if (replyPanel)
{
replyPanel.SetActive(step == 2);
}
if (waittingPanel)
{
waittingPanel.SetActive(step == 3);
if (waittingVideoPlayer)
{
waittingVideoPlayer.Play();
}
}
}
}

View File

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: db1fd2f6db07d39439c10fb1519a7a86

View File

@ -22,9 +22,9 @@ public class ServerWorkMessagePanel : MonoBehaviour
public static void cleanData()
{
workMessageType = "";
workMessageType = "";
workPresent = "";
//workMessageType = "";
//workMessage = "";
//workPresent = "";
}
private void Awake()

View File

@ -19,6 +19,12 @@ public class ServerWorkSceneController : MonoBehaviour
public GameObject messageReplyContinuePanel;
public GameObject gamePanel;
public GameObject gameTalkingPanel;
public GameObject gameTypingPanel;
public GameObject gameSticksPanel;
public GameObject gameWaittingPanel;
public GameObject gameFinalPanel;
public GameObject gameFinalSurveyPanel;
void Awake()
{
@ -48,14 +54,28 @@ public class ServerWorkSceneController : MonoBehaviour
if (introPanel)
{
introPanel.SetActive(step == 1 ? true : false);
if (step == 1)
{
ServerWorkMessagePanel.workMessageCount = 0;
ServerWorkMessagePanel.workMessage = "";
ServerWorkMessagePanel.workMessageType = "";
ServerWorkMessagePanel.workPresent = "";
}
}
if (messagePanel)
{
messagePanel.SetActive(step == 2 ? true : false);
if (step == 2)
{
}
}
if (messageReplyPanel)
{
messageReplyPanel.SetActive(step == 3 ? true : false);
}
if (messageReplyWordsPanel)
{
@ -177,6 +197,42 @@ public class ServerWorkSceneController : MonoBehaviour
if (gamePanel)
{
gamePanel.SetActive(step == 13 ? true : false);
if (step == 13)
{
ServerGamePanel.nameOfTheGameWillBeOpened = "";
}
}
if (gameTalkingPanel)
{
gameTalkingPanel.SetActive(step == 14 ? true : false);
if (ServerGameTalkingPanel.Instance)
{
ServerGameTalkingPanel.Instance.init();
}
}
if (gameTypingPanel)
{
gameTypingPanel.SetActive(step == 15 ? true : false);
}
if (gameSticksPanel)
{
gameSticksPanel.SetActive(step == 16 ? true : false);
}
if (gameWaittingPanel)
{
gameWaittingPanel.SetActive(step == 17 ? true : false);
}
if (gameFinalPanel)
{
gameFinalPanel.SetActive(step == 18 ? true : false);
if (ServerWorkGameFinalPanel.Instance)
{
ServerWorkGameFinalPanel.Instance.init();
}
}
if (gameFinalSurveyPanel)
{
gameFinalSurveyPanel.SetActive(step == 19 ? true : false);
}
}

View File

@ -146,7 +146,7 @@ MonoBehaviour:
- line: '| androidApplicationEntry: 2'
- line: '| defaultIsNativeResolution: 1'
- line: '| macRetinaSupport: 1'
- line: '| runInBackground: 0'
- line: '| runInBackground: 1'
- line: '| muteOtherAudioSources: 0'
- line: '| Prepare IOS For Recording: 0'
- line: '| Force IOS Speakers When Recording: 0'

View File

@ -116,7 +116,7 @@ MonoBehaviour:
- line: '| androidApplicationEntry: 2'
- line: '| defaultIsNativeResolution: 1'
- line: '| macRetinaSupport: 1'
- line: '| runInBackground: 1'
- line: '| runInBackground: 0'
- line: '| muteOtherAudioSources: 0'
- line: '| Prepare IOS For Recording: 0'
- line: '| Force IOS Speakers When Recording: 0'
@ -177,9 +177,7 @@ MonoBehaviour:
- line: '| visionOSBundleVersion: 1.0'
- line: '| tvOSBundleVersion: 1.0'
- line: '| bundleVersion: 1.0'
- line: '| preloadedAssets:'
- line: '| - {fileID: -944628639613478452, guid: 3590b91b4603b465dbb4216d601bff33,
type: 3}'
- line: '| preloadedAssets: []'
- line: '| metroInputSource: 0'
- line: '| wsaTransparentSwapchain: 0'
- line: '| m_HolographicPauseOnTrackingLoss: 1'

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long