[03_RoyalGallery/Unity-19050-03_RoyalGallery_Portrait_PC]

Added movie feature.
master
LH 6 years ago
parent 083f8f0d04
commit f990952c2e
  1. 3022
      03_RoyalGallery/Unity-19050-03_RoyalGallery_Portrait_PC/19050-03_RoyalGallery_Portrait_PC/Assets/RoyalGalleryPortrait.unity
  2. 28
      03_RoyalGallery/Unity-19050-03_RoyalGallery_Portrait_PC/19050-03_RoyalGallery_Portrait_PC/Assets/RoyalGalleryPortrait/Script/Portrait.cs
  3. 52
      03_RoyalGallery/Unity-19050-03_RoyalGallery_Portrait_PC/19050-03_RoyalGallery_Portrait_PC/Assets/RoyalGalleryPortrait/Script/PortraitManager.cs
  4. 113
      03_RoyalGallery/Unity-19050-03_RoyalGallery_Portrait_PC/19050-03_RoyalGallery_Portrait_PC/ProjectSettings/ProjectSettings.asset

@ -11,6 +11,8 @@ namespace UltraCombos.Frozen
public string id; public string id;
public Color32 BackgroundColor; public Color32 BackgroundColor;
public Vector2 Positon; public Vector2 Positon;
public DShowMoviePlayer BgMovie;
public DShowMoviePlayer FgMovie;
const float duration = 150.0f; const float duration = 150.0f;
float stamp = 0.0f; float stamp = 0.0f;
@ -108,6 +110,32 @@ namespace UltraCombos.Frozen
image.texture = tex; image.texture = tex;
} }
public void OnPlay()
{
if (BgMovie)
{
BgMovie.Play();
}
if (FgMovie)
{
FgMovie.Play();
}
}
public void OnStop()
{
if (BgMovie)
{
BgMovie.Stop();
}
if (FgMovie)
{
FgMovie.Stop();
}
}
private void OnTrigger() private void OnTrigger()
{ {
stamp = Time.time; stamp = Time.time;

@ -3,6 +3,7 @@ using UnityEngine;
using UnityEngine.Events; using UnityEngine.Events;
using UnityEngine.EventSystems; using UnityEngine.EventSystems;
using UnityEngine.UI; using UnityEngine.UI;
using System.Collections;
namespace UltraCombos.Frozen namespace UltraCombos.Frozen
{ {
@ -80,19 +81,8 @@ namespace UltraCombos.Frozen
if (portraitKeyNxt != null) if (portraitKeyNxt != null)
{ {
if (portraits.ContainsKey(PortraitKeyCur)) StartCoroutine(OnPlayPortrait(portraitKeyNxt));
{
//portraits[show_cur].isVisible = false;
}
PortraitKeyCur = portraitKeyNxt;
portraitKeyNxt = null; portraitKeyNxt = null;
Transform tf = camera.GetComponent<Transform>();
Vector2 tar = portraits[PortraitKeyCur].Positon;
camera.GetComponent<Transform>().localPosition = new Vector3(tar.x, tar.y, tf.localPosition.z);
//portraits[show_cur].isVisible = true;
} }
if (Input.GetKeyDown(KeyCode.R)) if (Input.GetKeyDown(KeyCode.R))
@ -132,6 +122,42 @@ namespace UltraCombos.Frozen
return new Color32(255, 255, 255, 255); return new Color32(255, 255, 255, 255);
} }
}
IEnumerator OnPlayPortrait(string next)
{
string PortraitKeyPre = PortraitKeyCur;
PortraitKeyCur = next;
Portrait p_cur = portraits[PortraitKeyCur];
p_cur.OnPlay();
yield return new WaitForEndOfFrame();
Transform tf = camera.GetComponent<Transform>();
Vector2 tar = p_cur.Positon;
camera.GetComponent<Transform>().localPosition = new Vector3(tar.x, tar.y, tf.localPosition.z);
yield return new WaitForEndOfFrame();
if (PortraitKeyCur != PortraitKeyPre)
{
StartCoroutine(OnStopPortrait(PortraitKeyPre));
}
yield return null;
}
IEnumerator OnStopPortrait(string pre)
{
if (!portraits.ContainsKey(pre))
{
yield return null;
}
Portrait p = portraits[pre];
p.OnStop();
yield return null;
}
}
} }

@ -3,7 +3,7 @@
--- !u!129 &1 --- !u!129 &1
PlayerSettings: PlayerSettings:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
serializedVersion: 15 serializedVersion: 18
productGUID: 1ccc7966210ac2b4684d2a03bb8c719d productGUID: 1ccc7966210ac2b4684d2a03bb8c719d
AndroidProfiler: 0 AndroidProfiler: 0
AndroidFilterTouchesWhenObscured: 0 AndroidFilterTouchesWhenObscured: 0
@ -13,7 +13,7 @@ PlayerSettings:
useOnDemandResources: 0 useOnDemandResources: 0
accelerometerFrequency: 60 accelerometerFrequency: 60
companyName: UltraCombos companyName: UltraCombos
productName: 19017-Minions-4_1_GirlsRoom productName: 19050-03_RoyalGallery_Portrait
defaultCursor: {fileID: 0} defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0} cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
@ -52,8 +52,8 @@ PlayerSettings:
m_StackTraceTypes: 010000000100000001000000010000000100000001000000 m_StackTraceTypes: 010000000100000001000000010000000100000001000000
iosShowActivityIndicatorOnLoading: -1 iosShowActivityIndicatorOnLoading: -1
androidShowActivityIndicatorOnLoading: -1 androidShowActivityIndicatorOnLoading: -1
iosAppInBackgroundBehavior: 0
displayResolutionDialog: 0 displayResolutionDialog: 0
iosUseCustomAppBackgroundBehavior: 0
iosAllowHTTPDownload: 1 iosAllowHTTPDownload: 1
allowedAutorotateToPortrait: 1 allowedAutorotateToPortrait: 1
allowedAutorotateToPortraitUpsideDown: 1 allowedAutorotateToPortraitUpsideDown: 1
@ -63,6 +63,8 @@ PlayerSettings:
use32BitDisplayBuffer: 1 use32BitDisplayBuffer: 1
preserveFramebufferAlpha: 0 preserveFramebufferAlpha: 0
disableDepthAndStencilBuffers: 0 disableDepthAndStencilBuffers: 0
androidStartInFullscreen: 1
androidRenderOutsideSafeArea: 0
androidBlitType: 0 androidBlitType: 0
defaultIsNativeResolution: 1 defaultIsNativeResolution: 1
macRetinaSupport: 1 macRetinaSupport: 1
@ -96,9 +98,6 @@ PlayerSettings:
xboxEnableGuest: 0 xboxEnableGuest: 0
xboxEnablePIXSampling: 0 xboxEnablePIXSampling: 0
metalFramebufferOnly: 0 metalFramebufferOnly: 0
n3dsDisableStereoscopicView: 0
n3dsEnableSharedListOpt: 1
n3dsEnableVSync: 0
xboxOneResolution: 0 xboxOneResolution: 0
xboxOneSResolution: 0 xboxOneSResolution: 0
xboxOneXResolution: 3 xboxOneXResolution: 3
@ -107,11 +106,12 @@ PlayerSettings:
xboxOneDisableEsram: 0 xboxOneDisableEsram: 0
xboxOnePresentImmediateThreshold: 0 xboxOnePresentImmediateThreshold: 0
switchQueueCommandMemory: 0 switchQueueCommandMemory: 0
videoMemoryForVertexBuffers: 0 switchQueueControlMemory: 16384
psp2PowerMode: 0 switchQueueComputeMemory: 262144
psp2AcquireBGM: 1 switchNVNShaderPoolsGranularity: 33554432
switchNVNDefaultPoolsGranularity: 16777216
switchNVNOtherPoolsGranularity: 16777216
vulkanEnableSetSRGBWrite: 0 vulkanEnableSetSRGBWrite: 0
vulkanUseSWCommandBuffers: 0
m_SupportedAspectRatios: m_SupportedAspectRatios:
4:3: 1 4:3: 1
5:4: 1 5:4: 1
@ -143,8 +143,12 @@ PlayerSettings:
oculus: oculus:
sharedDepthBuffer: 0 sharedDepthBuffer: 0
dashSupport: 0 dashSupport: 0
lowOverheadMode: 0
protectedContext: 0
v2Signing: 0
enable360StereoCapture: 0 enable360StereoCapture: 0
protectGraphicsMemory: 0 protectGraphicsMemory: 0
enableFrameTimingStats: 0
useHDRDisplay: 0 useHDRDisplay: 0
m_ColorGamuts: 00000000 m_ColorGamuts: 00000000
targetPixelDensity: 30 targetPixelDensity: 30
@ -169,7 +173,7 @@ PlayerSettings:
StripUnusedMeshComponents: 1 StripUnusedMeshComponents: 1
VertexChannelCompressionMask: 4054 VertexChannelCompressionMask: 4054
iPhoneSdkVersion: 988 iPhoneSdkVersion: 988
iOSTargetOSVersionString: 8.0 iOSTargetOSVersionString: 9.0
tvOSSdkVersion: 0 tvOSSdkVersion: 0
tvOSRequireExtendedGameController: 0 tvOSRequireExtendedGameController: 0
tvOSTargetOSVersionString: 9.0 tvOSTargetOSVersionString: 9.0
@ -234,8 +238,8 @@ PlayerSettings:
tvOSManualSigningProvisioningProfileType: 0 tvOSManualSigningProvisioningProfileType: 0
appleEnableAutomaticSigning: 0 appleEnableAutomaticSigning: 0
iOSRequireARKit: 0 iOSRequireARKit: 0
iOSAutomaticallyDetectAndAddCapabilities: 1
appleEnableProMotion: 0 appleEnableProMotion: 0
vulkanEditorSupport: 0
clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea
templatePackageId: com.unity.3d@1.0.2 templatePackageId: com.unity.3d@1.0.2
templateDefaultScene: Assets/Scenes/SampleScene.unity templateDefaultScene: Assets/Scenes/SampleScene.unity
@ -432,6 +436,7 @@ PlayerSettings:
switchAllowsRuntimeAddOnContentInstall: 0 switchAllowsRuntimeAddOnContentInstall: 0
switchDataLossConfirmation: 0 switchDataLossConfirmation: 0
switchUserAccountLockEnabled: 0 switchUserAccountLockEnabled: 0
switchSystemResourceMemory: 16777216
switchSupportedNpadStyles: 3 switchSupportedNpadStyles: 3
switchNativeFsCacheSize: 32 switchNativeFsCacheSize: 32
switchIsHoldTypeHorizontal: 0 switchIsHoldTypeHorizontal: 0
@ -492,6 +497,7 @@ PlayerSettings:
ps4pnGameCustomData: 1 ps4pnGameCustomData: 1
playerPrefsSupport: 0 playerPrefsSupport: 0
enableApplicationExit: 0 enableApplicationExit: 0
resetTempFolder: 1
restrictedAudioUsageRights: 0 restrictedAudioUsageRights: 0
ps4UseResolutionFallback: 0 ps4UseResolutionFallback: 0
ps4ReprojectionSupport: 0 ps4ReprojectionSupport: 0
@ -515,53 +521,6 @@ PlayerSettings:
ps4attribEyeToEyeDistanceSettingVR: 0 ps4attribEyeToEyeDistanceSettingVR: 0
ps4IncludedModules: [] ps4IncludedModules: []
monoEnv: monoEnv:
psp2Splashimage: {fileID: 0}
psp2NPTrophyPackPath:
psp2NPSupportGBMorGJP: 0
psp2NPAgeRating: 12
psp2NPTitleDatPath:
psp2NPCommsID:
psp2NPCommunicationsID:
psp2NPCommsPassphrase:
psp2NPCommsSig:
psp2ParamSfxPath:
psp2ManualPath:
psp2LiveAreaGatePath:
psp2LiveAreaBackroundPath:
psp2LiveAreaPath:
psp2LiveAreaTrialPath:
psp2PatchChangeInfoPath:
psp2PatchOriginalPackage:
psp2PackagePassword: F69AzBlax3CF3EDNhm3soLBPh71Yexui
psp2KeystoneFile:
psp2MemoryExpansionMode: 0
psp2DRMType: 0
psp2StorageType: 0
psp2MediaCapacity: 0
psp2DLCConfigPath:
psp2ThumbnailPath:
psp2BackgroundPath:
psp2SoundPath:
psp2TrophyCommId:
psp2TrophyPackagePath:
psp2PackagedResourcesPath:
psp2SaveDataQuota: 10240
psp2ParentalLevel: 1
psp2ShortTitle: Not Set
psp2ContentID: IV0000-ABCD12345_00-0123456789ABCDEF
psp2Category: 0
psp2MasterVersion: 01.00
psp2AppVersion: 01.00
psp2TVBootMode: 0
psp2EnterButtonAssignment: 2
psp2TVDisableEmu: 0
psp2AllowTwitterDialog: 1
psp2Upgradable: 0
psp2HealthWarning: 0
psp2UseLibLocation: 0
psp2InfoBarOnStartup: 0
psp2InfoBarColor: 0
psp2ScriptOptimizationLevel: 0
splashScreenBackgroundSourceLandscape: {fileID: 0} splashScreenBackgroundSourceLandscape: {fileID: 0}
splashScreenBackgroundSourcePortrait: {fileID: 0} splashScreenBackgroundSourcePortrait: {fileID: 0}
spritePackerPolicy: spritePackerPolicy:
@ -577,10 +536,12 @@ PlayerSettings:
webGLUseEmbeddedResources: 0 webGLUseEmbeddedResources: 0
webGLCompressionFormat: 1 webGLCompressionFormat: 1
webGLLinkerTarget: 1 webGLLinkerTarget: 1
webGLThreadsSupport: 0
scriptingDefineSymbols: {} scriptingDefineSymbols: {}
platformArchitecture: {} platformArchitecture: {}
scriptingBackend: {} scriptingBackend: {}
il2cppCompilerConfiguration: {} il2cppCompilerConfiguration: {}
managedStrippingLevel: {}
incrementalIl2cppBuild: {} incrementalIl2cppBuild: {}
allowUnsafeCode: 0 allowUnsafeCode: 0
additionalIl2CppArgs: additionalIl2CppArgs:
@ -602,6 +563,8 @@ PlayerSettings:
metroMediumTileShowName: 0 metroMediumTileShowName: 0
metroLargeTileShowName: 0 metroLargeTileShowName: 0
metroWideTileShowName: 0 metroWideTileShowName: 0
metroSupportStreamingInstall: 0
metroLastRequiredScene: 0
metroDefaultTileSize: 1 metroDefaultTileSize: 1
metroTileForegroundText: 2 metroTileForegroundText: 2
metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0} metroTileBackgroundColor: {r: 0.13333334, g: 0.17254902, b: 0.21568628, a: 0}
@ -609,21 +572,11 @@ PlayerSettings:
a: 1} a: 1}
metroSplashScreenUseBackgroundColor: 0 metroSplashScreenUseBackgroundColor: 0
platformCapabilities: {} platformCapabilities: {}
metroTargetDeviceFamilies: {}
metroFTAName: metroFTAName:
metroFTAFileTypes: [] metroFTAFileTypes: []
metroProtocolName: metroProtocolName:
metroCompilationOverrides: 1 metroCompilationOverrides: 1
n3dsUseExtSaveData: 0
n3dsCompressStaticMem: 1
n3dsExtSaveDataNumber: 0x12345
n3dsStackSize: 131072
n3dsTargetPlatform: 2
n3dsRegion: 7
n3dsMediaSize: 0
n3dsLogoStyle: 3
n3dsTitle: GameName
n3dsProductCode:
n3dsApplicationId: 0xFF3FF
XboxOneProductId: XboxOneProductId:
XboxOneUpdateKey: XboxOneUpdateKey:
XboxOneSandboxId: XboxOneSandboxId:
@ -649,17 +602,37 @@ PlayerSettings:
XboxOnePersistentLocalStorageSize: 0 XboxOnePersistentLocalStorageSize: 0
XboxOneXTitleMemory: 8 XboxOneXTitleMemory: 8
xboxOneScriptCompiler: 0 xboxOneScriptCompiler: 0
XboxOneOverrideIdentityName:
vrEditorSettings: vrEditorSettings:
daydream: daydream:
daydreamIconForeground: {fileID: 0} daydreamIconForeground: {fileID: 0}
daydreamIconBackground: {fileID: 0} daydreamIconBackground: {fileID: 0}
cloudServicesEnabled: cloudServicesEnabled:
UNet: 1 UNet: 1
luminIcon:
m_Name:
m_ModelFolderPath:
m_PortalFolderPath:
luminCert:
m_CertPath:
m_PrivateKeyPath:
luminIsChannelApp: 0
luminVersion:
m_VersionCode: 1
m_VersionName:
facebookSdkVersion: 7.9.4 facebookSdkVersion: 7.9.4
facebookAppId:
facebookCookies: 1
facebookLogging: 1
facebookStatus: 1
facebookXfbml: 0
facebookFrictionlessRequests: 1
apiCompatibilityLevel: 3 apiCompatibilityLevel: 3
cloudProjectId: 1f09c995-64ef-45a5-8343-3d219cf39009 cloudProjectId: 1f09c995-64ef-45a5-8343-3d219cf39009
framebufferDepthMemorylessMode: 0
projectName: Unity_2018_Girl's Room (1) projectName: Unity_2018_Girl's Room (1)
organizationId: ultracombos organizationId: ultracombos
cloudEnabled: 0 cloudEnabled: 0
enableNativePlatformBackendsForNewInputSystem: 0 enableNativePlatformBackendsForNewInputSystem: 0
disableOldInputManagerSupport: 0 disableOldInputManagerSupport: 0
legacyClampBlendShapeWeights: 1

Loading…
Cancel
Save