mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 11:45:09 +00:00
First Contact & Tap Trial
First Contact: Live is now offbeat [alienSuccess] code block is a bit smaller Mission Control is now stretchable Tap Trial - Started working on coding the inputs - Animated monkey (tap, double, and triple (incomplete))
This commit is contained in:
parent
614059a4d3
commit
4f08887078
432 changed files with 115089 additions and 755 deletions
8
Assets/GUIWindows.meta
Normal file
8
Assets/GUIWindows.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0213bb2af6cda644f97e3dc22e5d5815
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/GUIWindows/Cursors.meta
Normal file
8
Assets/GUIWindows/Cursors.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9e2cc9380e05e994ca36eafd84612971
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/GUIWindows/Cursors/cursor_diag_a.png
Normal file
BIN
Assets/GUIWindows/Cursors/cursor_diag_a.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 256 B |
96
Assets/GUIWindows/Cursors/cursor_diag_a.png.meta
Normal file
96
Assets/GUIWindows/Cursors/cursor_diag_a.png.meta
Normal file
|
@ -0,0 +1,96 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5b69212126b91114ea8f0a926d77c519
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 1
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -3
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 0
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
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: 7
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 1
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/GUIWindows/Cursors/cursor_diag_b.png
Normal file
BIN
Assets/GUIWindows/Cursors/cursor_diag_b.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 253 B |
96
Assets/GUIWindows/Cursors/cursor_diag_b.png.meta
Normal file
96
Assets/GUIWindows/Cursors/cursor_diag_b.png.meta
Normal file
|
@ -0,0 +1,96 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2b62059c6b03f004db5a180b61188820
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 1
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -3
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 0
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
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: 7
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 1
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/GUIWindows/Cursors/cursor_horizontal.png
Normal file
BIN
Assets/GUIWindows/Cursors/cursor_horizontal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 214 B |
96
Assets/GUIWindows/Cursors/cursor_horizontal.png.meta
Normal file
96
Assets/GUIWindows/Cursors/cursor_horizontal.png.meta
Normal file
|
@ -0,0 +1,96 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5704ce039ab9a4d41bce815832591a2f
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 1
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -3
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 0
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
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: 7
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 1
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/GUIWindows/Cursors/cursor_vertical.png
Normal file
BIN
Assets/GUIWindows/Cursors/cursor_vertical.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 249 B |
96
Assets/GUIWindows/Cursors/cursor_vertical.png.meta
Normal file
96
Assets/GUIWindows/Cursors/cursor_vertical.png.meta
Normal file
|
@ -0,0 +1,96 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 40a8ef17dc9780c4085eb2001e1c9ac1
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 11
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 0
|
||||
sRGBTexture: 1
|
||||
linearTexture: 1
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 1
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: -3
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 0
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 1
|
||||
wrapV: 1
|
||||
wrapW: 1
|
||||
nPOTScale: 0
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
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: 7
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 1
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 0
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/GUIWindows/Resources.meta
Normal file
8
Assets/GUIWindows/Resources.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a10780de139895143a5169586497425c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
3235
Assets/GUIWindows/Resources/WindowUIComponent.prefab
Normal file
3235
Assets/GUIWindows/Resources/WindowUIComponent.prefab
Normal file
File diff suppressed because it is too large
Load diff
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4e35aeb23d52d724cb7fe53502b35ed6
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/GUIWindows/Scripts.meta
Normal file
8
Assets/GUIWindows/Scripts.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8883473590307544898c90d1e7efef00
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/GUIWindows/Scripts/Editor.meta
Normal file
8
Assets/GUIWindows/Scripts/Editor.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 074e01de92c223544965cecb3408cd66
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
35
Assets/GUIWindows/Scripts/Editor/GUIPointerObjectEditor.cs
Normal file
35
Assets/GUIWindows/Scripts/Editor/GUIPointerObjectEditor.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Rellac.Windows
|
||||
{
|
||||
[CustomEditor(typeof(GUIPointerObject))]
|
||||
[CanEditMultipleObjects]
|
||||
public class GUIPointerObjectEditor : Editor
|
||||
{
|
||||
|
||||
SerializedProperty onPointerUp;
|
||||
SerializedProperty onPointerDown;
|
||||
SerializedProperty onPointerEnter;
|
||||
SerializedProperty onPointerExit;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
onPointerUp = serializedObject.FindProperty("onPointerUp");
|
||||
onPointerDown = serializedObject.FindProperty("onPointerDown");
|
||||
onPointerEnter = serializedObject.FindProperty("onPointerEnter");
|
||||
onPointerExit = serializedObject.FindProperty("onPointerExit");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
EditorGUILayout.PropertyField(onPointerUp);
|
||||
EditorGUILayout.PropertyField(onPointerDown);
|
||||
EditorGUILayout.PropertyField(onPointerEnter);
|
||||
EditorGUILayout.PropertyField(onPointerExit);
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9557e460670800e458d7bb141135de55
|
||||
guid: e208f13f49d1a4c42b716cbde5c0ba97
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
29
Assets/GUIWindows/Scripts/GUIBorderParent.cs
Normal file
29
Assets/GUIWindows/Scripts/GUIBorderParent.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace Rellac.Windows
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains a reference to all GUIWindowHandle objects below this Transform for ease of referencing
|
||||
/// </summary>
|
||||
public class GUIBorderParent : MonoBehaviour
|
||||
{
|
||||
private GUIWindowHandle[] handles;
|
||||
// Use this for initialization
|
||||
void Start()
|
||||
{
|
||||
handles = GetComponentsInChildren<GUIWindowHandle>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Toggle interactivity of handles
|
||||
/// </summary>
|
||||
/// <param name="input">is interactive</param>
|
||||
public void SetIsLocked(bool input)
|
||||
{
|
||||
for (int i = 0; i < handles.Length; i++)
|
||||
{
|
||||
handles[i].SetIsLocked(input);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f32d53b1d58c64e41b71bd7520435169
|
||||
guid: 7522e6e31c695a24eab781c580d37a59
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
66
Assets/GUIWindows/Scripts/GUIPointerObject.cs
Normal file
66
Assets/GUIWindows/Scripts/GUIPointerObject.cs
Normal file
|
@ -0,0 +1,66 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
namespace Rellac.Windows
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains events referencing IPointerHandlers
|
||||
/// </summary>
|
||||
public class GUIPointerObject : MonoBehaviour, IPointerUpHandler, IPointerDownHandler, IPointerEnterHandler, IPointerExitHandler
|
||||
{
|
||||
/// <summary>
|
||||
/// Fires when a pointer up is detected
|
||||
/// </summary>
|
||||
[HideInInspector]
|
||||
[Tooltip("Fires when a pointer up is detected")]
|
||||
public UnityEvent onPointerUp = null;
|
||||
/// <summary>
|
||||
/// Fires when a pointer down is detected
|
||||
/// </summary>
|
||||
[HideInInspector]
|
||||
[Tooltip("Fires when a pointer down is detected")]
|
||||
public UnityEvent onPointerDown = null;
|
||||
/// <summary>
|
||||
/// Fires when a pointer enter is detected
|
||||
/// </summary>
|
||||
[HideInInspector]
|
||||
[Tooltip("Fires when a pointer enter is detected")]
|
||||
public UnityEvent onPointerEnter = null;
|
||||
/// <summary>
|
||||
/// Fires when a pointer exit is detected
|
||||
/// </summary>
|
||||
[HideInInspector]
|
||||
[Tooltip("Fires when a pointer exit is detected")]
|
||||
public UnityEvent onPointerExit = null;
|
||||
|
||||
public void OnPointerUp(PointerEventData eventData)
|
||||
{
|
||||
if (onPointerUp != null)
|
||||
{
|
||||
onPointerUp.Invoke();
|
||||
}
|
||||
}
|
||||
public void OnPointerDown(PointerEventData eventData)
|
||||
{
|
||||
if (onPointerDown != null)
|
||||
{
|
||||
onPointerDown.Invoke();
|
||||
}
|
||||
}
|
||||
public void OnPointerEnter(PointerEventData eventData)
|
||||
{
|
||||
if (onPointerEnter != null)
|
||||
{
|
||||
onPointerEnter.Invoke();
|
||||
}
|
||||
}
|
||||
public void OnPointerExit(PointerEventData eventData)
|
||||
{
|
||||
if (onPointerExit != null)
|
||||
{
|
||||
onPointerExit.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1b489f3aef16a65499f9596abda39c35
|
||||
guid: 4817080b0d03dd846b5ee72dfd97c993
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
18
Assets/GUIWindows/Scripts/GUIWindow.cs
Normal file
18
Assets/GUIWindows/Scripts/GUIWindow.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using UnityEngine;
|
||||
|
||||
namespace Rellac.Windows
|
||||
{
|
||||
/// <summary>
|
||||
/// Simple script to destroy the target GameObject when window is closed
|
||||
/// </summary>
|
||||
public class GUIWindow : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// Close window by destroying this GameObject
|
||||
/// </summary>
|
||||
public void CloseWindow()
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/GUIWindows/Scripts/GUIWindow.cs.meta
Normal file
11
Assets/GUIWindows/Scripts/GUIWindow.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 53f10846845fcf9489fc69eccfbd24c9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
186
Assets/GUIWindows/Scripts/GUIWindowExpander.cs
Normal file
186
Assets/GUIWindows/Scripts/GUIWindowExpander.cs
Normal file
|
@ -0,0 +1,186 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace Rellac.Windows
|
||||
{
|
||||
/// <summary>
|
||||
/// Script to handle expanding and restoring a window to/from screen size
|
||||
/// </summary>
|
||||
public class GUIWindowExpander : GUIPointerObject
|
||||
{
|
||||
|
||||
private const float MaxTimeForDoubleClick = 0.5f;
|
||||
/// <summary>
|
||||
/// Window to apply expand effect to
|
||||
/// </summary>
|
||||
[Tooltip("")]
|
||||
[SerializeField] private RectTransform parentWindow = null;
|
||||
/// <summary>
|
||||
/// Expander is locked and unusable
|
||||
/// </summary>
|
||||
[Tooltip("")]
|
||||
[SerializeField] private bool isLocked = false;
|
||||
/// <summary>
|
||||
/// Allows you to double click this target image to minimise/maximise
|
||||
/// </summary>
|
||||
[Tooltip("Allows you to double click this target image to minimise/maximise")]
|
||||
[SerializeField] private bool doubleClick = true;
|
||||
/// <summary>
|
||||
/// Fires when window starts restoring to a smaller size
|
||||
/// </summary>
|
||||
public UnityEvent onMinimised = null;
|
||||
/// <summary>
|
||||
/// Fires when window starts expanding
|
||||
/// </summary>
|
||||
public UnityEvent onMaximised = null;
|
||||
|
||||
private bool isMaximised = false;
|
||||
private bool doAction = false;
|
||||
|
||||
private Vector2 initialPosition;
|
||||
private Vector2 initialMinAnchor;
|
||||
private Vector2 initialMaxAnchor;
|
||||
private Vector2 initialSize;
|
||||
private Vector2 initialPivot = Vector2.one * -1;
|
||||
|
||||
private Vector2 targetPosition;
|
||||
private Vector2 targetSize;
|
||||
|
||||
private int numClicks;
|
||||
|
||||
void Start()
|
||||
{
|
||||
onPointerDown.AddListener(parentWindow.SetAsLastSibling);
|
||||
onPointerDown.AddListener(TryDoubleClick);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
if (doAction)
|
||||
{
|
||||
// Lerp to position & size
|
||||
parentWindow.sizeDelta = Vector2.MoveTowards(parentWindow.sizeDelta, targetSize, Time.deltaTime * 10000);
|
||||
parentWindow.anchoredPosition = Vector2.MoveTowards(parentWindow.anchoredPosition, targetPosition, Time.deltaTime * 5000);
|
||||
// reached target
|
||||
if (parentWindow.sizeDelta == targetSize && parentWindow.anchoredPosition == targetPosition)
|
||||
{
|
||||
doAction = false;
|
||||
if (isMaximised)
|
||||
{ // set to a full stretched rect
|
||||
parentWindow.anchorMin = Vector2.zero;
|
||||
parentWindow.anchorMax = Vector2.one;
|
||||
parentWindow.sizeDelta = Vector2.zero;
|
||||
parentWindow.anchoredPosition = Vector2.zero;
|
||||
if (onMaximised != null)
|
||||
{
|
||||
onMaximised.Invoke();
|
||||
}
|
||||
}
|
||||
else
|
||||
{ // just invoke the event for a minimised window
|
||||
if (onMinimised != null)
|
||||
{
|
||||
onMinimised.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Toggle interactivity of expander
|
||||
/// </summary>
|
||||
/// <param name="input">is interactive</param>
|
||||
public void SetIsLocked(bool input)
|
||||
{
|
||||
isLocked = input;
|
||||
parentWindow.SetAsLastSibling();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set window to fill screen
|
||||
/// </summary>
|
||||
public void MaximiseWindow()
|
||||
{
|
||||
if (isLocked) return;
|
||||
|
||||
initialPosition = parentWindow.anchoredPosition;
|
||||
initialMinAnchor = parentWindow.anchorMin;
|
||||
initialMaxAnchor = parentWindow.anchorMax;
|
||||
initialSize = parentWindow.sizeDelta;
|
||||
initialPivot = parentWindow.pivot;
|
||||
|
||||
parentWindow.SetPivot(Vector2.one * 0.5f);
|
||||
|
||||
targetPosition = Vector2.zero;
|
||||
targetSize = new Vector2(Screen.width, Screen.height);
|
||||
|
||||
isMaximised = true;
|
||||
doAction = true;
|
||||
parentWindow.SetAsLastSibling();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set window to small size
|
||||
/// </summary>
|
||||
public void MinimiseWindow()
|
||||
{
|
||||
if (isLocked) return;
|
||||
parentWindow.anchorMin = initialMinAnchor;
|
||||
parentWindow.anchorMax = initialMaxAnchor;
|
||||
|
||||
parentWindow.sizeDelta = new Vector2(Screen.width, Screen.height);
|
||||
|
||||
if (initialPivot != Vector2.one * -1)
|
||||
{
|
||||
parentWindow.SetPivot(initialPivot);
|
||||
}
|
||||
|
||||
targetPosition = initialPosition;
|
||||
targetSize = initialSize;
|
||||
|
||||
isMaximised = false;
|
||||
doAction = true;
|
||||
parentWindow.SetAsLastSibling();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Do a click for attempting to expand by double click
|
||||
/// </summary>
|
||||
public void TryDoubleClick()
|
||||
{
|
||||
parentWindow.SetAsLastSibling();
|
||||
if (isLocked || !doubleClick) return;
|
||||
numClicks++;
|
||||
if (numClicks == 1)
|
||||
{
|
||||
Invoke("ResetDoubleClick", MaxTimeForDoubleClick);
|
||||
}
|
||||
else if (numClicks >= 2)
|
||||
{
|
||||
Invoke("Swap", 0.1f); // wait in case we're interrupting a mover
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Swap between minimised and maximised
|
||||
/// </summary>
|
||||
public void Swap()
|
||||
{
|
||||
if (isMaximised)
|
||||
{
|
||||
MinimiseWindow();
|
||||
}
|
||||
else
|
||||
{
|
||||
MaximiseWindow();
|
||||
}
|
||||
}
|
||||
|
||||
private void ResetDoubleClick()
|
||||
{
|
||||
numClicks = 0;
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/GUIWindows/Scripts/GUIWindowExpander.cs.meta
Normal file
11
Assets/GUIWindows/Scripts/GUIWindowExpander.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 14001084fe201b84d9804ee3eafd2b7a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
278
Assets/GUIWindows/Scripts/GUIWindowHandle.cs
Normal file
278
Assets/GUIWindows/Scripts/GUIWindowHandle.cs
Normal file
|
@ -0,0 +1,278 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace Rellac.Windows
|
||||
{
|
||||
/// <summary>
|
||||
/// Script to handle pull handles to expand the windows
|
||||
/// </summary>
|
||||
public class GUIWindowHandle : GUIPointerObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Window to apply pull effect to
|
||||
/// </summary>
|
||||
[Tooltip("Window to apply pull effect to")]
|
||||
[SerializeField] private RectTransform parentWindow = null;
|
||||
/// <summary>
|
||||
/// Handle is locked and unusable
|
||||
/// </summary>
|
||||
[Tooltip("Handle is locked and unusable")]
|
||||
[SerializeField] private bool isLocked = false;
|
||||
/// <summary>
|
||||
/// Minimum width parent window can be set to
|
||||
/// </summary>
|
||||
[Tooltip("Minimum width parent window can be set to")]
|
||||
[SerializeField] private float minWidth = 50;
|
||||
/// <summary>
|
||||
/// Minimum height parent window can be set to
|
||||
/// </summary>
|
||||
[Tooltip("Minimum height parent window can be set to")]
|
||||
[SerializeField] private float minHeight = 50;
|
||||
/// <summary>
|
||||
/// Sprite to show for cursor when this handle is highlighted
|
||||
/// </summary>
|
||||
[Tooltip("Sprite to show for cursor when this handle is highlighted")]
|
||||
[SerializeField] private Texture2D cursor = null;
|
||||
/// <summary>
|
||||
/// Directional axis to pull window with this handle
|
||||
/// </summary>
|
||||
[Tooltip("Directional axis to pull window with this handle")]
|
||||
[SerializeField] private Axis axis = Axis.Horizontal;
|
||||
/// <summary>
|
||||
/// Fired when user pulls on the handle
|
||||
/// </summary>
|
||||
public UnityEvent onWindowPulled = null;
|
||||
|
||||
Direction direction;
|
||||
private bool isGrabbed = false;
|
||||
|
||||
|
||||
private Vector2 initialMousePos;
|
||||
private Vector2 initialSize;
|
||||
private Vector2 initialPivot;
|
||||
|
||||
void Start()
|
||||
{
|
||||
//register to pointer events
|
||||
onPointerDown.AddListener(SetIsGrabbed);
|
||||
onPointerDown.AddListener(parentWindow.SetAsLastSibling);
|
||||
// onPointerEnter.AddListener(ShowCursor);
|
||||
// onPointerExit.AddListener(ResetCursor);
|
||||
|
||||
// find what direction we're pulling with this handle
|
||||
switch (axis)
|
||||
{
|
||||
|
||||
case Axis.Horizontal:
|
||||
if (transform.position.x > parentWindow.position.x)
|
||||
{
|
||||
direction = Direction.Right;
|
||||
}
|
||||
else
|
||||
{
|
||||
direction = Direction.Left;
|
||||
}
|
||||
break;
|
||||
|
||||
case Axis.Vertical:
|
||||
if (transform.position.y > parentWindow.position.y)
|
||||
{
|
||||
direction = Direction.Up;
|
||||
}
|
||||
else
|
||||
{
|
||||
direction = Direction.Down;
|
||||
}
|
||||
break;
|
||||
|
||||
case Axis.Diagonal:
|
||||
if (transform.position.y > parentWindow.position.y)
|
||||
{
|
||||
if (transform.position.x > parentWindow.position.x)
|
||||
{
|
||||
direction = Direction.UpRight;
|
||||
}
|
||||
else
|
||||
{
|
||||
direction = Direction.UpLeft;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (transform.position.x > parentWindow.position.x)
|
||||
{
|
||||
direction = Direction.DownRight;
|
||||
}
|
||||
else
|
||||
{
|
||||
direction = Direction.DownLeft;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (!isGrabbed)
|
||||
return;
|
||||
|
||||
if (Input.GetMouseButtonUp(0))
|
||||
{
|
||||
isGrabbed = false;
|
||||
parentWindow.SetPivot(initialPivot);
|
||||
if (onWindowPulled != null)
|
||||
{
|
||||
onWindowPulled.Invoke();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Vector2 scaleOffset = (Vector2.one - (Vector2)transform.lossyScale) + Vector2.one;
|
||||
Vector2 parentScale = parentWindow.transform.parent.GetComponent<RectTransform>().rect.size;
|
||||
Vector2 mouseDelta = Vector2.Scale((Vector2)Camera.main.ScreenToWorldPoint(GUIWindowUtils.MousePosition()) - initialMousePos, scaleOffset*parentScale);
|
||||
Vector2 size = initialSize;
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
case Direction.Up:
|
||||
size += new Vector2(0, mouseDelta.y);
|
||||
break;
|
||||
case Direction.Down:
|
||||
size -= new Vector2(0, mouseDelta.y);
|
||||
break;
|
||||
case Direction.Left:
|
||||
size -= new Vector2(mouseDelta.x, 0);
|
||||
break;
|
||||
case Direction.Right:
|
||||
size += new Vector2(mouseDelta.x, 0);
|
||||
break;
|
||||
case Direction.UpRight:
|
||||
size += new Vector2(mouseDelta.x, mouseDelta.y);
|
||||
break;
|
||||
case Direction.UpLeft:
|
||||
size += new Vector2(-mouseDelta.x, mouseDelta.y);
|
||||
break;
|
||||
case Direction.DownRight:
|
||||
size += new Vector2(mouseDelta.x, -mouseDelta.y);
|
||||
break;
|
||||
case Direction.DownLeft:
|
||||
size += new Vector2(-mouseDelta.x, -mouseDelta.y);
|
||||
break;
|
||||
}
|
||||
|
||||
// Keep Window within minimum size
|
||||
if (size.x < minWidth || size.y < minHeight)
|
||||
{
|
||||
Vector2 newsize = size;
|
||||
if (size.x < minWidth)
|
||||
{
|
||||
newsize.x = minWidth;
|
||||
}
|
||||
if (size.y < minHeight)
|
||||
{
|
||||
newsize.y = minHeight;
|
||||
}
|
||||
parentWindow.sizeDelta = newsize;
|
||||
return;
|
||||
}
|
||||
|
||||
// set position & size
|
||||
parentWindow.sizeDelta = size;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Toggle interactivity of handle
|
||||
/// </summary>
|
||||
/// <param name="input">is interactive</param>
|
||||
public void SetIsLocked(bool input)
|
||||
{
|
||||
isLocked = input;
|
||||
parentWindow.SetAsLastSibling();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Trigger that this handle has been grabbed
|
||||
/// </summary>
|
||||
public void SetIsGrabbed()
|
||||
{
|
||||
if (isLocked) return;
|
||||
isGrabbed = true;
|
||||
|
||||
initialMousePos = Camera.main.ScreenToWorldPoint(GUIWindowUtils.MousePosition());
|
||||
initialSize = parentWindow.sizeDelta;
|
||||
initialPivot = parentWindow.pivot;
|
||||
|
||||
// Set Pivot to correct value based on direction so we don't need to offset movement
|
||||
switch (direction)
|
||||
{
|
||||
case Direction.Up:
|
||||
parentWindow.SetPivot(new Vector2(0.5f, 0));
|
||||
break;
|
||||
case Direction.Down:
|
||||
parentWindow.SetPivot(new Vector2(0.5f, 1));
|
||||
break;
|
||||
case Direction.Left:
|
||||
parentWindow.SetPivot(new Vector2(1, 0.5f));
|
||||
break;
|
||||
case Direction.Right:
|
||||
parentWindow.SetPivot(new Vector2(0, 0.5f));
|
||||
break;
|
||||
case Direction.UpRight:
|
||||
parentWindow.SetPivot(new Vector2(0, 0));
|
||||
break;
|
||||
case Direction.UpLeft:
|
||||
parentWindow.SetPivot(new Vector2(1, 0));
|
||||
break;
|
||||
case Direction.DownRight:
|
||||
parentWindow.SetPivot(new Vector2(0, 1));
|
||||
break;
|
||||
case Direction.DownLeft:
|
||||
parentWindow.SetPivot(new Vector2(1, 1));
|
||||
break;
|
||||
}
|
||||
parentWindow.SetAsLastSibling();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Show the changed cursor when this handle is highlighted
|
||||
/// </summary>
|
||||
public void ShowCursor()
|
||||
{
|
||||
if (!isLocked && cursor != null)
|
||||
{
|
||||
Cursor.SetCursor(cursor, new Vector2(16, 16), CursorMode.Auto);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return the cursor to the default state
|
||||
/// </summary>
|
||||
public void ResetCursor()
|
||||
{
|
||||
if (cursor != null)
|
||||
{
|
||||
Cursor.SetCursor(null, Vector2.zero, CursorMode.Auto);
|
||||
}
|
||||
}
|
||||
|
||||
private enum Axis
|
||||
{
|
||||
Horizontal,
|
||||
Vertical,
|
||||
Diagonal
|
||||
}
|
||||
|
||||
private enum Direction
|
||||
{
|
||||
Up,
|
||||
Down,
|
||||
Left,
|
||||
Right,
|
||||
UpLeft,
|
||||
UpRight,
|
||||
DownLeft,
|
||||
DownRight
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/GUIWindows/Scripts/GUIWindowHandle.cs.meta
Normal file
11
Assets/GUIWindows/Scripts/GUIWindowHandle.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ff5cd5446e2fdea43a48057e3e0e0b8b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
70
Assets/GUIWindows/Scripts/GUIWindowMover.cs
Normal file
70
Assets/GUIWindows/Scripts/GUIWindowMover.cs
Normal file
|
@ -0,0 +1,70 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace Rellac.Windows
|
||||
{
|
||||
/// <summary>
|
||||
/// Script to handle moving windows
|
||||
/// </summary>
|
||||
public class GUIWindowMover : GUIPointerObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Window to move
|
||||
/// </summary>
|
||||
[Tooltip("Window to move")]
|
||||
[SerializeField] private RectTransform parentWindow = null;
|
||||
/// <summary>
|
||||
/// Mover is locked and unusable
|
||||
/// </summary>
|
||||
[Tooltip("Mover is locked and unusable")]
|
||||
[SerializeField] private bool isLocked = false;
|
||||
/// <summary>
|
||||
/// Fires when a window has been moved
|
||||
/// </summary>
|
||||
[Tooltip("Fires when a window has been moved")]
|
||||
[SerializeField] private UnityEvent onWindowMoved = null;
|
||||
|
||||
private Vector2 mouseOffset;
|
||||
private bool isGrabbed = false;
|
||||
|
||||
void Start()
|
||||
{
|
||||
onPointerDown.AddListener(SetIsGrabbed);
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (!isGrabbed || isLocked) return;
|
||||
|
||||
parentWindow.position = (Vector2)GUIWindowUtils.MousePosition() + mouseOffset;
|
||||
if (Input.GetMouseButtonUp(0))
|
||||
{
|
||||
isGrabbed = false;
|
||||
if (onWindowMoved != null)
|
||||
{
|
||||
onWindowMoved.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Toggle interactivity of handle
|
||||
/// </summary>
|
||||
/// <param name="input">is interactive</param>
|
||||
public void SetIsLocked(bool input)
|
||||
{
|
||||
isLocked = input;
|
||||
isGrabbed = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Trigger that window has started to be moved
|
||||
/// </summary>
|
||||
public void SetIsGrabbed()
|
||||
{
|
||||
mouseOffset = parentWindow.position - GUIWindowUtils.MousePosition();
|
||||
isGrabbed = true;
|
||||
parentWindow.SetAsLastSibling();
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/GUIWindows/Scripts/GUIWindowMover.cs.meta
Normal file
11
Assets/GUIWindows/Scripts/GUIWindowMover.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: afc20c44b0e31b64193a5ccaa228b5f8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
67
Assets/GUIWindows/Scripts/GUIWindowUtils.cs
Normal file
67
Assets/GUIWindows/Scripts/GUIWindowUtils.cs
Normal file
|
@ -0,0 +1,67 @@
|
|||
using UnityEngine;
|
||||
using UnityEngine.EventSystems;
|
||||
using UnityEngine.UI;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
namespace Rellac.Windows
|
||||
{
|
||||
public static class GUIWindowUtils
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
[MenuItem("GameObject/UI/Window")]
|
||||
public static void InstantiateWindow()
|
||||
{
|
||||
NewWindow();
|
||||
}
|
||||
#endif
|
||||
|
||||
public static GameObject NewWindow()
|
||||
{
|
||||
Object prefab = Resources.Load("WindowUIComponent");
|
||||
Canvas canvas = GameObject.FindObjectOfType<Canvas>();
|
||||
if (canvas == null)
|
||||
{
|
||||
// Create default canvas
|
||||
GameObject newCanvas = new GameObject("Canvas");
|
||||
canvas = newCanvas.AddComponent<Canvas>();
|
||||
canvas.renderMode = RenderMode.ScreenSpaceOverlay;
|
||||
newCanvas.AddComponent<CanvasScaler>();
|
||||
newCanvas.AddComponent<GraphicRaycaster>();
|
||||
if (GameObject.FindObjectOfType<EventSystem>() == null)
|
||||
{
|
||||
// Create defalut EventSystem
|
||||
new GameObject("EventSystem").AddComponent<EventSystem>(). // create new GameObject with EventSystem
|
||||
gameObject.AddComponent<StandaloneInputModule>() // add Input Module
|
||||
#if UNITY_5_3_OR_NEWER
|
||||
; // we don't need the Touch Input Module at 5.3+
|
||||
#else
|
||||
.gameObject.AddComponent<TouchInputModule>();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
GameObject go = (GameObject)GameObject.Instantiate(prefab);
|
||||
go.transform.SetParent(canvas.transform);
|
||||
go.transform.localPosition = Vector2.zero;
|
||||
go.name = "Window";
|
||||
return go;
|
||||
}
|
||||
|
||||
public static void SetPivot(this RectTransform rectTransform, Vector2 pivot)
|
||||
{
|
||||
if (rectTransform == null) return;
|
||||
|
||||
Vector2 size = rectTransform.rect.size;
|
||||
Vector2 deltaPivot = rectTransform.pivot - pivot;
|
||||
Vector3 deltaPosition = new Vector3(deltaPivot.x * size.x, deltaPivot.y * size.y);
|
||||
rectTransform.pivot = pivot;
|
||||
rectTransform.localPosition -= deltaPosition;
|
||||
}
|
||||
|
||||
public static Vector3 MousePosition()
|
||||
{
|
||||
var mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);
|
||||
return new Vector3(mousePos.x, mousePos.y, 0);
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/GUIWindows/Scripts/GUIWindowUtils.cs.meta
Normal file
11
Assets/GUIWindows/Scripts/GUIWindowUtils.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8f1db78fc458ea44ebcab0c6ce456cfe
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -32,8 +32,8 @@ MonoBehaviour:
|
|||
defaultEasePeriod: 0
|
||||
defaultAutoKill: 1
|
||||
defaultLoopType: 0
|
||||
debugMode: 0
|
||||
debugStoreTargetId: 1
|
||||
debugMode: 1
|
||||
debugStoreTargetId: 0
|
||||
showPreviewPanel: 1
|
||||
storeSettingsLocation: 0
|
||||
modules:
|
||||
|
|
1305
Assets/Resources/Games/spaceDance.prefab
Normal file
1305
Assets/Resources/Games/spaceDance.prefab
Normal file
File diff suppressed because it is too large
Load diff
7
Assets/Resources/Games/spaceDance.prefab.meta
Normal file
7
Assets/Resources/Games/spaceDance.prefab.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 56676d6fb082e4349abb8c2828c58405
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9c501a8142ad27f40849d560bbfd92ee
|
||||
guid: dc6e8852986995b4b8ffd6d6e4f79323
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
|
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/1.ogg
Normal file
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/1.ogg
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7d4f5beab0d9deb4a8fbcc379226e7f3
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/10.ogg
Normal file
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/10.ogg
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e8d650007bb9e6b40acd800d1d89644c
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/2.ogg
Normal file
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/2.ogg
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 26df2603dd16fb547bda89cc975cf7c6
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/3.ogg
Normal file
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/3.ogg
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6505e73a09adfaa4da82bfc4a86da4f6
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/4.ogg
Normal file
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/4.ogg
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 612c4a528ee5f9e4bb72c1bcb78a4c91
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/5.ogg
Normal file
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/5.ogg
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: aedffb60d7cf88a4c96537094c0e2a43
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/6.ogg
Normal file
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/6.ogg
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6325021ce1a3ad34483e603090e1475a
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/7.ogg
Normal file
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/7.ogg
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e59d92b2d02e07946852768c96afa27b
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/8.ogg
Normal file
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/8.ogg
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9f1a29a3638fdf348a7364cb20053cf4
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/9.ogg
Normal file
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/9.ogg
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8ab6518a41d6d974a8cad9905186b4f7
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/alien.ogg
Normal file
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/alien.ogg
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: da3f908e43cc9fa4385f98a8abf7181e
|
||||
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:
|
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 75a2c355f5edbde4a850273b9980f71b
|
||||
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:
|
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 064095b559468234288be28182a93ee3
|
||||
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:
|
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 1b71d9062a2786d4089e914a547c48aa
|
||||
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:
|
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5c835c823fb927e49ba9e26467c6a99f
|
||||
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:
|
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c1c677902e6148a478085c639fc474dd
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/success.wav
Normal file
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/success.wav
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 34a91f8415c95a745ba7b88787122586
|
||||
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:
|
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0391db64f742ed4438cfbcbc9096627c
|
||||
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:
|
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8e613e7503bb2194fbcfb385c21200ec
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/turnover.ogg
Normal file
BIN
Assets/Resources/Sfx/games/firstContact/citrusRemix/turnover.ogg
Normal file
Binary file not shown.
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 561064d42f575e64f90a5f621361e15a
|
||||
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:
|
8
Assets/Resources/Sfx/games/spaceDance.meta
Normal file
8
Assets/Resources/Sfx/games/spaceDance.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f386908d0da859043aa4cf1cc049b33d
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Resources/Sfx/games/spaceDance/dancerDown.wav
Normal file
BIN
Assets/Resources/Sfx/games/spaceDance/dancerDown.wav
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/spaceDance/dancerDown.wav.meta
Normal file
22
Assets/Resources/Sfx/games/spaceDance/dancerDown.wav.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c2c52b70a89bb6c4da70838d2fa691e2
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/spaceDance/dancerLets.wav
Normal file
BIN
Assets/Resources/Sfx/games/spaceDance/dancerLets.wav
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/spaceDance/dancerLets.wav.meta
Normal file
22
Assets/Resources/Sfx/games/spaceDance/dancerLets.wav.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0b4778435858ea541a2f096822049a58
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/spaceDance/dancerPa.wav
Normal file
BIN
Assets/Resources/Sfx/games/spaceDance/dancerPa.wav
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/spaceDance/dancerPa.wav.meta
Normal file
22
Assets/Resources/Sfx/games/spaceDance/dancerPa.wav.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 94da85d735382144a93db8447f43356d
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/spaceDance/dancerPunch.wav
Normal file
BIN
Assets/Resources/Sfx/games/spaceDance/dancerPunch.wav
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/spaceDance/dancerPunch.wav.meta
Normal file
22
Assets/Resources/Sfx/games/spaceDance/dancerPunch.wav.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 68f229563713f50458ab527a7ee96753
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/spaceDance/dancerRight.wav
Normal file
BIN
Assets/Resources/Sfx/games/spaceDance/dancerRight.wav
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/spaceDance/dancerRight.wav.meta
Normal file
22
Assets/Resources/Sfx/games/spaceDance/dancerRight.wav.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7c747e9f3a7fe9344b83eab56c43afdc
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/spaceDance/dancerSit.wav
Normal file
BIN
Assets/Resources/Sfx/games/spaceDance/dancerSit.wav
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/spaceDance/dancerSit.wav.meta
Normal file
22
Assets/Resources/Sfx/games/spaceDance/dancerSit.wav.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: a22668e296388644287674cd7c09e9d3
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/spaceDance/dancerTurn.wav
Normal file
BIN
Assets/Resources/Sfx/games/spaceDance/dancerTurn.wav
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/spaceDance/dancerTurn.wav.meta
Normal file
22
Assets/Resources/Sfx/games/spaceDance/dancerTurn.wav.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 72cb6a0c62ecc27478e7a30723c0cf95
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/spaceDance/inputBad.wav
Normal file
BIN
Assets/Resources/Sfx/games/spaceDance/inputBad.wav
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/spaceDance/inputBad.wav.meta
Normal file
22
Assets/Resources/Sfx/games/spaceDance/inputBad.wav.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f13f6f70f1111f646b29527c012b3080
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/spaceDance/inputBad2.wav
Normal file
BIN
Assets/Resources/Sfx/games/spaceDance/inputBad2.wav
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/spaceDance/inputBad2.wav.meta
Normal file
22
Assets/Resources/Sfx/games/spaceDance/inputBad2.wav.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 433dd4bd240e28f4d906dfd4d2188cf2
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/spaceDance/inputGood.wav
Normal file
BIN
Assets/Resources/Sfx/games/spaceDance/inputGood.wav
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/spaceDance/inputGood.wav.meta
Normal file
22
Assets/Resources/Sfx/games/spaceDance/inputGood.wav.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: bc8b43598f52e1f498fa8eae39a71317
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/spaceDance/otherDown.wav
Normal file
BIN
Assets/Resources/Sfx/games/spaceDance/otherDown.wav
Normal file
Binary file not shown.
22
Assets/Resources/Sfx/games/spaceDance/otherDown.wav.meta
Normal file
22
Assets/Resources/Sfx/games/spaceDance/otherDown.wav.meta
Normal file
|
@ -0,0 +1,22 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 974095f6d0aae194299ba09a3285adc8
|
||||
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:
|
BIN
Assets/Resources/Sfx/games/spaceDance/otherLets.wav
Normal file
BIN
Assets/Resources/Sfx/games/spaceDance/otherLets.wav
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue