mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-08 18:55:07 +00:00
Tram&Pauline animation update
This commit is contained in:
commit
8fca08c088
381 changed files with 144694 additions and 2132 deletions
|
@ -1,5 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 779f3d97d97807a41b869aac547fdd96
|
||||
guid: 0213bb2af6cda644f97e3dc22e5d5815
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
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: 1b489f3aef16a65499f9596abda39c35
|
||||
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: 9557e460670800e458d7bb141135de55
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/GUIWindows/Scripts/GUIPointerObject.cs.meta
Normal file
11
Assets/GUIWindows/Scripts/GUIPointerObject.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4817080b0d03dd846b5ee72dfd97c993
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
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:
|
|
@ -36,3 +36,4 @@ Material:
|
|||
- _UseUIAlphaClip: 0
|
||||
m_Colors:
|
||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_BuildTextureStacks: []
|
||||
|
|
|
@ -28,7 +28,7 @@ PluginImporter:
|
|||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
|
|
|
@ -28,7 +28,7 @@ PluginImporter:
|
|||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
|
|
|
@ -28,7 +28,7 @@ PluginImporter:
|
|||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
|
|
8
Assets/Plugins/JSL.meta
Normal file
8
Assets/Plugins/JSL.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5dfbaa1e85cf84f4c861f39c4d935a61
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
176
Assets/Plugins/JSL/JoyShockLibrary.cs
Normal file
176
Assets/Plugins/JSL/JoyShockLibrary.cs
Normal file
|
@ -0,0 +1,176 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
public static class JSL
|
||||
{
|
||||
public const int ButtonMaskUp = 0;
|
||||
public const int ButtonMaskDown = 1;
|
||||
public const int ButtonMaskLeft = 2;
|
||||
public const int ButtonMaskRight = 3;
|
||||
public const int ButtonMaskPlus = 4;
|
||||
public const int ButtonMaskOptions = 4;
|
||||
public const int ButtonMaskMinus = 5;
|
||||
public const int ButtonMaskShare = 5;
|
||||
public const int ButtonMaskLClick = 6;
|
||||
public const int ButtonMaskRClick = 7;
|
||||
public const int ButtonMaskL = 8;
|
||||
public const int ButtonMaskR = 9;
|
||||
public const int ButtonMaskZL = 10;
|
||||
public const int ButtonMaskZR = 11;
|
||||
public const int ButtonMaskS = 12;
|
||||
public const int ButtonMaskE = 13;
|
||||
public const int ButtonMaskW = 14;
|
||||
public const int ButtonMaskN = 15;
|
||||
public const int ButtonMaskHome = 16;
|
||||
public const int ButtonMaskPS = 16;
|
||||
public const int ButtonMaskCapture = 17;
|
||||
public const int ButtonMaskTouchpadClick = 17;
|
||||
public const int ButtonMaskSL = 18;
|
||||
public const int ButtonMaskSR = 19;
|
||||
|
||||
public const int TypeJoyConLeft = 1;
|
||||
public const int TypeJoyConRight = 2;
|
||||
public const int TypeProController = 3;
|
||||
public const int TypeDualShock4 = 4;
|
||||
public const int TypeDualSense = 5;
|
||||
|
||||
public const int SplitLeft = 1;
|
||||
public const int SplitRight = 2;
|
||||
public const int SplitFull = 3;
|
||||
|
||||
// PS5 Player maps for the DS Player Lightbar
|
||||
public static readonly int[] DualSensePlayerMask = {
|
||||
4,
|
||||
10,
|
||||
21,
|
||||
27,
|
||||
31
|
||||
};
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct JOY_SHOCK_STATE
|
||||
{
|
||||
public int buttons;
|
||||
public float lTrigger;
|
||||
public float rTrigger;
|
||||
public float stickLX;
|
||||
public float stickLY;
|
||||
public float stickRX;
|
||||
public float stickRY;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct IMU_STATE
|
||||
{
|
||||
public float accelX;
|
||||
public float accelY;
|
||||
public float accelZ;
|
||||
public float gyroX;
|
||||
public float gyroY;
|
||||
public float gyroZ;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct MOTION_STATE {
|
||||
float quatW;
|
||||
float quatX;
|
||||
float quatY;
|
||||
float quatZ;
|
||||
float accelX;
|
||||
float accelY;
|
||||
float accelZ;
|
||||
float gravX;
|
||||
float gravY;
|
||||
float gravZ;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
public struct TOUCH_STATE {
|
||||
int t0Id;
|
||||
int t1Id;
|
||||
bool t0Down;
|
||||
bool t1Down;
|
||||
float t0X;
|
||||
float t0Y;
|
||||
float t1X;
|
||||
float t1Y;
|
||||
}
|
||||
|
||||
public delegate void EventCallback(int handle, JOY_SHOCK_STATE state, JOY_SHOCK_STATE lastState,
|
||||
IMU_STATE imuState, IMU_STATE lastImuState, float deltaTime);
|
||||
|
||||
public delegate void TouchCallback(int handle, TOUCH_STATE state, TOUCH_STATE lastState, float deltaTime);
|
||||
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern int JslConnectDevices();
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern int JslGetConnectedDeviceHandles(int[] deviceHandleArray, int size);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern void JslDisconnectAndDisposeAll();
|
||||
|
||||
[DllImport("JoyShockLibrary", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern JOY_SHOCK_STATE JslGetSimpleState(int deviceId);
|
||||
[DllImport("JoyShockLibrary", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern IMU_STATE JslGetIMUState(int deviceId);
|
||||
[DllImport("JoyShockLibrary", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern MOTION_STATE JslGetMotionState(int deviceId);
|
||||
[DllImport("JoyShockLibrary", CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern TOUCH_STATE JslGetTouchState(int deviceId);
|
||||
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern float JslGetStickStep(int deviceId);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern float JslGetTriggerStep(int deviceId);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern float JslGetPollRate(int deviceId);
|
||||
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern float JslGetTouchId(int deviceId, bool secondTouch = false);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern float JslGetTouchDown(int deviceId, bool secondTouch = false);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern float JslGetTouchX(int deviceId, bool secondTouch = false);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern float JslGetTouchY(int deviceId, bool secondTouch = false);
|
||||
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern void JslResetContinuousCalibration(int deviceId);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern void JslStartContinuousCalibration(int deviceId);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern void JslPauseContinuousCalibration(int deviceId);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern void JslGetCalibrationOffset(int deviceId, ref float xOffset, ref float yOffset, ref float zOffset);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern void JslGetCalibrationOffset(int deviceId, float xOffset, float yOffset, float zOffset);
|
||||
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern void JslSetCallback(EventCallback callback);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern void JslSetTouchCallback(TouchCallback callback);
|
||||
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern int JslGetControllerType(int deviceId);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern int JslGetControllerSplitType(int deviceId);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern int JslGetControllerColour(int deviceId);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern int JslGetControllerButtonColour(int deviceId);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern int JslGetControllerLeftGripColour(int deviceId);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern int JslGetControllerRightGripColour(int deviceId);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern void JslSetLightColour(int deviceId, int colour);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern void JslSetRumble(int deviceId, int smallRumble, int bigRumble);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern void JslSetRumbleFrequency(int deviceId, float smallRumble, float bigRumble, float smallFrequency, float bigFrequency);
|
||||
[DllImport("JoyShockLibrary")]
|
||||
public static extern void JslSetPlayerNumber(int deviceId, int number);
|
||||
}
|
11
Assets/Plugins/JSL/JoyShockLibrary.cs.meta
Normal file
11
Assets/Plugins/JSL/JoyShockLibrary.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: dce4133e93426bb40a13278c4f90e742
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
217
Assets/Plugins/JSL/JoyShockLibrary.h
Normal file
217
Assets/Plugins/JSL/JoyShockLibrary.h
Normal file
|
@ -0,0 +1,217 @@
|
|||
// JoyShockLibrary.h - Contains declarations of functions
|
||||
#pragma once
|
||||
|
||||
#if _MSC_VER // this is defined when compiling with Visual Studio
|
||||
#define JOY_SHOCK_API __declspec(dllexport) // Visual Studio needs annotating exported functions with this
|
||||
#else
|
||||
#define JOY_SHOCK_API // XCode does not need annotating exported functions, so define is empty
|
||||
#endif
|
||||
|
||||
#define JS_TYPE_JOYCON_LEFT 1
|
||||
#define JS_TYPE_JOYCON_RIGHT 2
|
||||
#define JS_TYPE_PRO_CONTROLLER 3
|
||||
#define JS_TYPE_DS4 4
|
||||
#define JS_TYPE_DS 5
|
||||
|
||||
#define JS_SPLIT_TYPE_LEFT 1
|
||||
#define JS_SPLIT_TYPE_RIGHT 2
|
||||
#define JS_SPLIT_TYPE_FULL 3
|
||||
|
||||
#define JSMASK_UP 0x00001
|
||||
#define JSMASK_DOWN 0x00002
|
||||
#define JSMASK_LEFT 0x00004
|
||||
#define JSMASK_RIGHT 0x00008
|
||||
#define JSMASK_PLUS 0x00010
|
||||
#define JSMASK_OPTIONS 0x00010
|
||||
#define JSMASK_MINUS 0x00020
|
||||
#define JSMASK_SHARE 0x00020
|
||||
#define JSMASK_LCLICK 0x00040
|
||||
#define JSMASK_RCLICK 0x00080
|
||||
#define JSMASK_L 0x00100
|
||||
#define JSMASK_R 0x00200
|
||||
#define JSMASK_ZL 0x00400
|
||||
#define JSMASK_ZR 0x00800
|
||||
#define JSMASK_S 0x01000
|
||||
#define JSMASK_E 0x02000
|
||||
#define JSMASK_W 0x04000
|
||||
#define JSMASK_N 0x08000
|
||||
#define JSMASK_HOME 0x10000
|
||||
#define JSMASK_PS 0x10000
|
||||
#define JSMASK_CAPTURE 0x20000
|
||||
#define JSMASK_TOUCHPAD_CLICK 0x20000
|
||||
#define JSMASK_MIC 0x40000
|
||||
#define JSMASK_SL 0x40000
|
||||
#define JSMASK_SR 0x80000
|
||||
|
||||
#define JSOFFSET_UP 0
|
||||
#define JSOFFSET_DOWN 1
|
||||
#define JSOFFSET_LEFT 2
|
||||
#define JSOFFSET_RIGHT 3
|
||||
#define JSOFFSET_PLUS 4
|
||||
#define JSOFFSET_OPTIONS 4
|
||||
#define JSOFFSET_MINUS 5
|
||||
#define JSOFFSET_SHARE 5
|
||||
#define JSOFFSET_LCLICK 6
|
||||
#define JSOFFSET_RCLICK 7
|
||||
#define JSOFFSET_L 8
|
||||
#define JSOFFSET_R 9
|
||||
#define JSOFFSET_ZL 10
|
||||
#define JSOFFSET_ZR 11
|
||||
#define JSOFFSET_S 12
|
||||
#define JSOFFSET_E 13
|
||||
#define JSOFFSET_W 14
|
||||
#define JSOFFSET_N 15
|
||||
#define JSOFFSET_HOME 16
|
||||
#define JSOFFSET_PS 16
|
||||
#define JSOFFSET_CAPTURE 17
|
||||
#define JSOFFSET_TOUCHPAD_CLICK 17
|
||||
#define JSOFFSET_MIC 18
|
||||
#define JSOFFSET_SL 18
|
||||
#define JSOFFSET_SR 19
|
||||
|
||||
// PS5 Player maps for the DS Player Lightbar
|
||||
#define DS5_PLAYER_1 = 4
|
||||
#define DS5_PLAYER_2 = 10
|
||||
#define DS5_PLAYER_3 = 21
|
||||
#define DS5_PLAYER_4 = 27
|
||||
#define DS5_PLAYER_5 = 31
|
||||
|
||||
typedef struct JOY_SHOCK_STATE {
|
||||
int buttons;
|
||||
float lTrigger;
|
||||
float rTrigger;
|
||||
float stickLX;
|
||||
float stickLY;
|
||||
float stickRX;
|
||||
float stickRY;
|
||||
} JOY_SHOCK_STATE;
|
||||
|
||||
typedef struct IMU_STATE {
|
||||
float accelX;
|
||||
float accelY;
|
||||
float accelZ;
|
||||
float gyroX;
|
||||
float gyroY;
|
||||
float gyroZ;
|
||||
} IMU_STATE;
|
||||
|
||||
typedef struct MOTION_STATE {
|
||||
float quatW;
|
||||
float quatX;
|
||||
float quatY;
|
||||
float quatZ;
|
||||
float accelX;
|
||||
float accelY;
|
||||
float accelZ;
|
||||
float gravX;
|
||||
float gravY;
|
||||
float gravZ;
|
||||
} MOTION_STATE;
|
||||
|
||||
typedef struct TOUCH_STATE {
|
||||
int t0Id;
|
||||
int t1Id;
|
||||
bool t0Down;
|
||||
bool t1Down;
|
||||
float t0X;
|
||||
float t0Y;
|
||||
float t1X;
|
||||
float t1Y;
|
||||
} TOUCH_STATE;
|
||||
|
||||
extern "C" JOY_SHOCK_API int JslConnectDevices();
|
||||
extern "C" JOY_SHOCK_API int JslGetConnectedDeviceHandles(int* deviceHandleArray, int size);
|
||||
extern "C" JOY_SHOCK_API void JslDisconnectAndDisposeAll();
|
||||
|
||||
// get buttons as bits in the following order, using North South East West to name face buttons to avoid ambiguity between Xbox and Nintendo layouts:
|
||||
// 0x00001: up
|
||||
// 0x00002: down
|
||||
// 0x00004: left
|
||||
// 0x00008: right
|
||||
// 0x00010: plus
|
||||
// 0x00020: minus
|
||||
// 0x00040: left stick click
|
||||
// 0x00080: right stick click
|
||||
// 0x00100: L
|
||||
// 0x00200: R
|
||||
// ZL and ZR are reported as analogue inputs (GetLeftTrigger, GetRightTrigger), because DS4 and XBox controllers use analogue triggers, but we also have them as raw buttons
|
||||
// 0x00400: ZL
|
||||
// 0x00800: ZR
|
||||
// 0x01000: S
|
||||
// 0x02000: E
|
||||
// 0x04000: W
|
||||
// 0x08000: N
|
||||
// 0x10000: home / PS
|
||||
// 0x20000: capture / touchpad-click
|
||||
// 0x40000: SL
|
||||
// 0x80000: SR
|
||||
// These are the best way to get all the buttons/triggers/sticks, gyro/accelerometer (IMU), orientation/acceleration/gravity (Motion), or touchpad
|
||||
extern "C" JOY_SHOCK_API JOY_SHOCK_STATE JslGetSimpleState(int deviceId);
|
||||
extern "C" JOY_SHOCK_API IMU_STATE JslGetIMUState(int deviceId);
|
||||
extern "C" JOY_SHOCK_API MOTION_STATE JslGetMotionState(int deviceId);
|
||||
extern "C" JOY_SHOCK_API TOUCH_STATE JslGetTouchState(int deviceId, bool previous = false);
|
||||
extern "C" JOY_SHOCK_API bool JslGetTouchpadDimension(int deviceId, int &sizeX, int &sizeY);
|
||||
|
||||
extern "C" JOY_SHOCK_API int JslGetButtons(int deviceId);
|
||||
|
||||
// get thumbsticks
|
||||
extern "C" JOY_SHOCK_API float JslGetLeftX(int deviceId);
|
||||
extern "C" JOY_SHOCK_API float JslGetLeftY(int deviceId);
|
||||
extern "C" JOY_SHOCK_API float JslGetRightX(int deviceId);
|
||||
extern "C" JOY_SHOCK_API float JslGetRightY(int deviceId);
|
||||
|
||||
// get triggers. Switch controllers don't have analogue triggers, but will report 0.0 or 1.0 so they can be used in the same way as others
|
||||
extern "C" JOY_SHOCK_API float JslGetLeftTrigger(int deviceId);
|
||||
extern "C" JOY_SHOCK_API float JslGetRightTrigger(int deviceId);
|
||||
|
||||
// get gyro
|
||||
extern "C" JOY_SHOCK_API float JslGetGyroX(int deviceId);
|
||||
extern "C" JOY_SHOCK_API float JslGetGyroY(int deviceId);
|
||||
extern "C" JOY_SHOCK_API float JslGetGyroZ(int deviceId);
|
||||
|
||||
// get accelerometor
|
||||
extern "C" JOY_SHOCK_API float JslGetAccelX(int deviceId);
|
||||
extern "C" JOY_SHOCK_API float JslGetAccelY(int deviceId);
|
||||
extern "C" JOY_SHOCK_API float JslGetAccelZ(int deviceId);
|
||||
|
||||
// get touchpad
|
||||
extern "C" JOY_SHOCK_API int JslGetTouchId(int deviceId, bool secondTouch = false);
|
||||
extern "C" JOY_SHOCK_API bool JslGetTouchDown(int deviceId, bool secondTouch = false);
|
||||
|
||||
extern "C" JOY_SHOCK_API float JslGetTouchX(int deviceId, bool secondTouch = false);
|
||||
extern "C" JOY_SHOCK_API float JslGetTouchY(int deviceId, bool secondTouch = false);
|
||||
|
||||
// analog parameters have different resolutions depending on device
|
||||
extern "C" JOY_SHOCK_API float JslGetStickStep(int deviceId);
|
||||
extern "C" JOY_SHOCK_API float JslGetTriggerStep(int deviceId);
|
||||
extern "C" JOY_SHOCK_API float JslGetPollRate(int deviceId);
|
||||
|
||||
// calibration
|
||||
extern "C" JOY_SHOCK_API void JslResetContinuousCalibration(int deviceId);
|
||||
extern "C" JOY_SHOCK_API void JslStartContinuousCalibration(int deviceId);
|
||||
extern "C" JOY_SHOCK_API void JslPauseContinuousCalibration(int deviceId);
|
||||
extern "C" JOY_SHOCK_API void JslSetAutomaticCalibration(int deviceId, bool enabled);
|
||||
extern "C" JOY_SHOCK_API void JslGetCalibrationOffset(int deviceId, float& xOffset, float& yOffset, float& zOffset);
|
||||
extern "C" JOY_SHOCK_API void JslSetCalibrationOffset(int deviceId, float xOffset, float yOffset, float zOffset);
|
||||
|
||||
// this function will get called for each input event from each controller
|
||||
extern "C" JOY_SHOCK_API void JslSetCallback(void(*callback)(int, JOY_SHOCK_STATE, JOY_SHOCK_STATE, IMU_STATE, IMU_STATE, float));
|
||||
// this function will get called for each input event, even if touch data didn't update
|
||||
extern "C" JOY_SHOCK_API void JslSetTouchCallback(void(*callback)(int, TOUCH_STATE, TOUCH_STATE, float));
|
||||
|
||||
// what kind of controller is this?
|
||||
extern "C" JOY_SHOCK_API int JslGetControllerType(int deviceId);
|
||||
// is this a left, right, or full controller?
|
||||
extern "C" JOY_SHOCK_API int JslGetControllerSplitType(int deviceId);
|
||||
// what colour is the controller (not all controllers support this; those that don't will report white)
|
||||
extern "C" JOY_SHOCK_API int JslGetControllerColour(int deviceId);
|
||||
extern "C" JOY_SHOCK_API int JslGetControllerButtonColour(int deviceId);
|
||||
extern "C" JOY_SHOCK_API int JslGetControllerLeftGripColour(int deviceId);
|
||||
extern "C" JOY_SHOCK_API int JslGetControllerRightGripColour(int deviceId);
|
||||
// set controller light colour (not all controllers have a light whose colour can be set, but that just means nothing will be done when this is called -- no harm)
|
||||
extern "C" JOY_SHOCK_API void JslSetLightColour(int deviceId, int colour);
|
||||
// set controller rumble
|
||||
extern "C" JOY_SHOCK_API void JslSetRumble(int deviceId, int smallRumble, int bigRumble);
|
||||
extern "C" JOY_SHOCK_API void JslSetRumbleFrequency(int deviceId, float smallRumble, float bigRumble, float smallFrequency, float bigFrequency);
|
||||
// set controller player number indicator (not all controllers have a number indicator which can be set, but that just means nothing will be done when this is called -- no harm)
|
||||
extern "C" JOY_SHOCK_API void JslSetPlayerNumber(int deviceId, int number);
|
27
Assets/Plugins/JSL/JoyShockLibrary.h.meta
Normal file
27
Assets/Plugins/JSL/JoyShockLibrary.h.meta
Normal file
|
@ -0,0 +1,27 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 129c872137ca57441bd8e920a0caceef
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
30
Assets/Plugins/JSL/LICENSE.md
Normal file
30
Assets/Plugins/JSL/LICENSE.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
### MIT License
|
||||
|
||||
Copyright 2018-2021 Julian Smart
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
---
|
||||
|
||||
This software incorporates some work from the following projects and their copyright holders, all also covered by the same MIT license, with the same permissions and disclaimers:
|
||||
* mfosse's JoyCon-Driver (JoyCon driver), Copyright 2018 Matthew Fosse: https://github.com/mfosse/JoyCon-Driver
|
||||
* chrippa's ds4drv (DualShock 4 driver), Copyright 2013-2014 Christopher Rosell: https://github.com/chrippa/ds4drv
|
||||
* Ryochan7 and Jay2Kings' DS4Windows (DualShock 4 input mapper), Copyright 2019 Travis Nickles: https://github.com/Ryochan7/DS4Windows
|
||||
|
||||
---
|
||||
|
||||
This software also links to signal11's HIDAPI, and includes the source thereof in case it's needed for future builds. HIDAPI has its own permissive license: https://github.com/signal11/hidapi
|
||||
|
||||
HIDAPI - Multi-Platform library for
|
||||
communication with HID devices.
|
||||
|
||||
Copyright 2009, Alan Ott, Signal 11 Software.
|
||||
All Rights Reserved.
|
||||
|
||||
This software may be used by anyone for any reason so
|
||||
long as the copyright notice in the source files
|
||||
remains intact.
|
7
Assets/Plugins/JSL/LICENSE.md.meta
Normal file
7
Assets/Plugins/JSL/LICENSE.md.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8aac471e2ae4e2c4691e7ebf7305175f
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
179
Assets/Plugins/JSL/README.md
Normal file
179
Assets/Plugins/JSL/README.md
Normal file
|
@ -0,0 +1,179 @@
|
|||
# JoyShockLibrary
|
||||
The Sony PlayStation's DualShock 4, DualSense, Nintendo Switch Joy-Cons (used in pairs), and Nintendo Switch Pro Controller have much in common. They have many of the features expected of modern game controllers. They also have an incredibly versatile and underutilised input that their biggest rival (Microsoft's Xbox One controller) doesn't have: the gyro.
|
||||
|
||||
My goal with JoyShockLibrary is to enable game developers to support DS4, DS, Joy-Cons, and Pro Controllers natively in PC games. I've compiled the library for Windows, but it uses platform-agnostic tools, and my hope is that other developers would be able to get it working on other platforms (such as Linux or Mac) without too much trouble.
|
||||
|
||||
## Contents
|
||||
* **[Releases](#releases)**
|
||||
* **[Reference](#reference)**
|
||||
* **[Structs](#structs)**
|
||||
* **[Functions](#functions)**
|
||||
* **[Known and Perceived Issues](#known-and-perceived-issues)**
|
||||
* **[Backwards Compatibility](#backwards-compatibility)**
|
||||
* **[Credits](#credits)**
|
||||
* **[Helpful Resources](#helpful-resources)**
|
||||
* **[License](#license)**
|
||||
|
||||
## Releases
|
||||
The latest version of JoyShockLibrary can always be found [here](https://github.com/JibbSmart/JoyShockLibrary/releases). Included is a 64-bit dll and a 32-bit dll, both for Windows, and JoyShockLibrary.h and JoyShockLibrary.cs for using the dll in C/C++ and C\# (Unity), respectively.
|
||||
|
||||
## Reference
|
||||
*JoyShockLibrary.h* has everything you need to use the library, but here's a breakdown of everything in there.
|
||||
|
||||
### Structs
|
||||
**struct JOY\_SHOCK\_STATE** - This struct contains the state for all the sticks, buttons, and triggers on the controller. If you're just using JoyShockLibrary to be able to use Joy-Cons, Pro Controllers, DualSenses, and DualShock 4s similarly to how you'd use other devices, this has everything you need to know.
|
||||
* **int buttons** contains the states of all the controller's buttons with the following masks:
|
||||
* ```0x00001``` - d-pad ```up```
|
||||
* ```0x00002``` - d-pad ```down```
|
||||
* ```0x00004``` - d-pad ```left```
|
||||
* ```0x00008``` - d-pad ```right```
|
||||
* ```0x00010``` - ```+``` on Nintendo devices, ```Options``` on DS4
|
||||
* ```0x00020``` - ```-``` on Nintendo devices, ```Share``` on DS4
|
||||
* ```0x00040``` - ```left-stick click``` on Nintendo devices, ```L3``` on DS4
|
||||
* ```0x00080``` - ```right-stick click``` on Nintendo devices, ```R3``` on DS4
|
||||
* ```0x00100``` - ```L``` on Nintendo devices, ```L1``` on DS4
|
||||
* ```0x00200``` - ```R``` on Nintendo devices, ```R1``` on DS4
|
||||
* ```0x00400``` - ```ZL``` on Nintendo devices, ```L2``` on DS4
|
||||
* ```0x00800``` - ```ZR``` on Nintendo devices, ```R2``` on DS4
|
||||
* ```0x01000``` - the South face-button: ```B``` on Nintendo devices, ```⨉``` on DS4
|
||||
* ```0x02000``` - the East face-button: ```A``` on Nintendo devices, ```○``` on DS4
|
||||
* ```0x04000``` - the West face-button: ```Y``` on Nintendo devices, ```□``` on DS4
|
||||
* ```0x08000``` - the North face-button: ```X``` on Nintendo devices, ```△``` on DS4
|
||||
* ```0x10000``` - ```Home``` on Nintendo devices, ```PS``` on DS4
|
||||
* ```0x20000``` - ```Capture``` on Nintendo devices, ```touchpad click``` on DS4, ```Create``` on DS5
|
||||
* ```0x40000``` - ```SL``` on Nintendo Joy-Cons, ```Mic``` on DS5
|
||||
* ```0x80000``` - ```SR``` on Nintendo Joy-Cons
|
||||
* **float lTrigger** - how far has the left trigger been pressed? This will be 1 or 0 on Nintendo devices, which don't have analog triggers
|
||||
* **float rTrigger** - how far has the right trigger been pressed? This will be 1 or 0 on Nintendo devices, which don't have analog triggers
|
||||
* **float stickLX, stickLY** - left-stick X axis and Y axis, respectively, from -1 to 1
|
||||
* **float stickRX, stickRX** - right-stick X axis and Y axis, respectively, from -1 to 1
|
||||
|
||||
**struct IMU_STATE** - Each supported device contains an IMU which has a 3-axis accelerometer and a 3-axis gyroscope. IMU\_STATE is where you find that info.
|
||||
* **float accelX, accelY, accelZ** - accelerometer X axis, Y axis, and Z axis, respectively, in g (g-force).
|
||||
* **float gyroX, gyroY, gyroZ** - gyroscope angular velocity X, Y, and Z, respectively, in dps (degrees per second), when correctly calibrated.
|
||||
|
||||
**struct MOTION_STATE** - The MOTION_STATE reports the orientation of the device as calculated using a sensor fusion solution to combine gyro and accelerometer data.
|
||||
* **float quatW, quatX, quatY, quatZ** - a quaternion representing the orientation of the device.
|
||||
* **float accelX, accelY, accelZ** - local acceleration after accounting for and removing the effect of gravity.
|
||||
* **float gravX, gravY, gravZ** - local gravity direction.
|
||||
|
||||
### Functions
|
||||
|
||||
All these functions *should* be thread-safe, and none of them should cause any harm if given the wrong handle. If they do, please report this to me as an isuse.
|
||||
|
||||
**int JslConnectDevices()** - Register any connected devices. Returns the number of devices connected, which is helpful for getting the handles for those devices with the next function.
|
||||
|
||||
**int JslGetConnectedDeviceHandles(int\* deviceHandleArray, int size)** - Fills the array *deviceHandleArray* of size *size* with the handles for all connected devices, up to the length of the array. Use the length returned by *JslConnectDevices* to make sure you've got all connected devices' handles.
|
||||
|
||||
**void JslDisconnectAndDisposeAll()** - Disconnect devices, no longer polling them for input.
|
||||
|
||||
**JOY\_SHOCK\_STATE JslGetSimpleState(int deviceId)** - Get the latest button + trigger + stick state for the controller with the given id.
|
||||
|
||||
**IMU\_STATE JslGetIMUState(int deviceId)** - Get the latest accelerometer + gyroscope state for the controller with the given id.
|
||||
|
||||
**MOTION\_STATE JslGetMotionState(int deviceId)** - Get the latest motion state for the controller with the given id.
|
||||
|
||||
**TOUCH\_STATE JslGetTouchState(int deviceId)** - Get the latest touchpad state for the controller with the given id. Only DualShock 4s support this.
|
||||
|
||||
**int JslGetButtons(int deviceId)** - Get the latest button state for the controller with the given id. If you want more than just the buttons, it's more efficient to use JslGetSimpleState.
|
||||
|
||||
**float JslGetLeftX/JslGetLeftY/JslGetRightX/JslGetRightY(int deviceId)** - Get the latest stick state for the controller with the given id. If you want more than just a single stick axis, it's more efficient to use JslGetSimpleState.
|
||||
|
||||
**float JslGetLeftTrigger/JslGetRightTrigger(int deviceId)** - Get the latest trigger state for the controller with the given id. If you want more than just a single trigger, it's more efficient to use JslGetSimpleState.
|
||||
|
||||
**float JslGetGyroX/JslGetGyroY/JslGetGyroZ(int deviceId)** - Get the latest angular velocity for a given gyroscope axis. If you want more than just a single gyroscope axis velocity, it's more efficient to use JslGetIMUState.
|
||||
|
||||
**float JslGetAccelX/JslGetAccelY/JslGetAccelZ(int deviceId)** - Get the latest acceleration for a given axis. If you want more than just a accelerometer axis, it's more efficient to use JslGetIMUState.
|
||||
|
||||
**int JslGetTouchId(int deviceId, bool secondTouch=false)** - Get the last touch's id, which is a value in range of 0-127 that automaticaly increments whenever a new touch appears, for the controller with the given id. Only DualShock 4s support this. If you want more than just a touch's id, it's more efficient to use JslGetTouchState.
|
||||
|
||||
**bool JslGetTouchDown(int deviceId, bool secondTouch=false)** - Get the latest state of the touch being present on a touchpad for the controller with the given id. Only DualShock 4s support this. If you want more than just a presence of touch, it's more efficient to use JslGetTouchState.
|
||||
|
||||
**float JslGetTouchX/JslGetTouchY(int deviceId, bool secondTouch=false)** - Get the latest touch state for the controller with the given id. Only DualShock 4s support this. If you want more than just a single touch axis, it's more efficient to use JslGetTouchState.
|
||||
|
||||
**float JslGetStickStep(int deviceId)** - Different devices use different size data types and different ranges on those data types when reporting stick axes. For some calculations, it may be important to know the limits of the current device and work around them in different ways. This gives the smallest step size between two values for the given device's analog sticks.
|
||||
|
||||
**float JslGetTriggerStep(int deviceId)** - Some devices have analog triggers, some don't. For some calculations, it may be important to know the limits of the current device and work around them in different ways. This gives the smallest step size between two values for the given device's triggers, or 1.0 if they're actually just binary inputs.
|
||||
|
||||
**float JslGetTriggerStep(int deviceId)** - Some devices have analog triggers, some don't. For some calculations, it may be important to know the limits of the current device and work around them in different ways. This gives the smallest step size between two values for the given device's triggers, or 1.0 if they're actually just binary inputs.
|
||||
|
||||
**float JslGetPollRate(int deviceId)** - Different devices report back new information at different rates. For the given device, this gives how many times one would usually expect the device to report back per second.
|
||||
|
||||
**void JslResetContinuousCalibration(int deviceId)** - JoyShockLibrary has helpful functions for calibrating the gyroscope by averaging out its input over time. This deletes all calibration data that's been accumulated, if any, this session.
|
||||
|
||||
**void JslStartContinuousCalibration(int deviceId)** - Start collecting gyro data, recording the ongoing average and using that to offset gyro output.
|
||||
|
||||
**void JslPauseContinuousCalibration(int deviceId)** - Stop collecting gyro data, but don't delete it.
|
||||
|
||||
**void JslGetCalibrationOffset(int deviceId, float& xOffset, float& yOffset, float& zOffset)** - Get the calibrated offset value for the given device's gyro. You don't have to use it; all gyro output for this device is already being offset by this vector before leaving JoyShockLibrary.
|
||||
|
||||
**void JslSetCalibrationOffset(int deviceId, float xOffset, float yOffset, float zOffset)** - Manually set the calibrated offset value for the given device's gyro.
|
||||
|
||||
**void JslSetCallback(void(\*callback)(int, JOY\_SHOCK\_STATE, JOY\_SHOCK\_STATE, IMU\_STATE, IMU\_STATE, float))** - Set a callback function by which JoyShockLibrary can report the current state for each device. This callback will be given the *deviceId* for the reporting device, its current button + trigger + stick state, its previous button + trigger + stick state, its current accelerometer + gyro state, its previous accelerometer + gyro state, and the amount of time since the last report for this device (in seconds).
|
||||
|
||||
**void JslSetTouchCallback(void(\*callback)(int, TOUCH\_STATE, TOUCH\_STATE, float))** - Set a callback function by which JoyShockLibrary can report the current touchpad state for each device. Only DualShock 4s will use this. This callback will be given the *deviceId* for the reporting device, its current and previous touchpad states, and the amount of time since the last report for this device (in seconds).
|
||||
|
||||
**int JslGetControllerType(int deviceId)** - What type of controller is this device?
|
||||
1. Left Joy-Con
|
||||
2. Right Joy-Con
|
||||
3. Switch Pro Controller
|
||||
4. DualShock 4
|
||||
5. DualSense
|
||||
|
||||
**int JslGetControllerSplitType(int deviceId)** - Is this a half-controller or full? If half, what kind?
|
||||
1. Left half
|
||||
2. Right half
|
||||
3. Full controller
|
||||
|
||||
**int JslGetControllerColour(int deviceId)** - Get the colour of the controller. Only Nintendo devices support this. Others will report white.
|
||||
|
||||
**void JslSetLightColour(int deviceId, int colour)** - Set the light colour on the given controller. Only DualShock 4 and the DualSense support this. Players will often prefer to be able to disable the light, so make sure to give them that option, but when setting players up in a local multiplayer game, setting the light colour is a useful way to uniquely identify different controllers.
|
||||
|
||||
**void JslSetPlayerNumber(int deviceId, int number)** - Set the lights that indicate player number. This only works on Nintendo devices and the DualSense. NOTE: The DualSense sets each LED through a bitmask. Use the ```DS5_PLAYER_#``` definitions in the header file to get PS5-style lightbar formats.
|
||||
|
||||
Player 1: ```--x--```
|
||||
Player 2: ```-x-x-```
|
||||
Player 3: ```x-x-x```
|
||||
Player 4: ```xx-xx```
|
||||
Player 5: ```xxxxx```
|
||||
|
||||
**void JslSetRumble(int deviceId, int smallRumble, int bigRumble)** - DualShock 4s have two types of rumble, and they can be set at the same time with different intensities. These can be set from 0 to 255. Nintendo devices support rumble as well, but totally differently. They call it "HD rumble", and it's a great feature, but JoyShockLibrary doesn't yet support it.
|
||||
|
||||
## Known and Perceived Issues
|
||||
### Bluetooth connectivity
|
||||
Joy-Cons and Pro Controllers are normally only be connected by Bluetooth. Some Bluetooth adapters can't keep up with these devices, resulting in laggy input. This is especially common when more than one device is connected (such as when using a pair of Joy-Cons). There is nothing JoyShockMapper or JoyShockLibrary can do about this.
|
||||
|
||||
There is experimental support for connecting supported Switch controllers by USB now. Please let me know if you have any issues (or success!) with it.
|
||||
|
||||
### Gyro poll rate on Nintendo devices
|
||||
The Nintendo devices report every 15ms, but their IMUs actually report every 5ms. Every 15ms report includes the last 3 gyro and accelerometer reports. When creating the latest IMU state for Nintendo devices, JoyShockLibrary averages out those 3 gyro and accelerometer reports, so that it can best include all that information in a sensible format. For things like controlling a cursor on a plane, this should be of little to no consequence, since the result is the same as adding all 3 reports separately over shorter time intervals. But for representing real 3D rotations of the controller, this causes the Nintendo devices to be *slightly* less accurate than they could be, because we're combining 3 rotations in a simplistic way.
|
||||
|
||||
In a future version I hope to either combine the 3 rotations in a way that works better in 3D, or to add a way for a single controller event to report several IMU events at the same time.
|
||||
|
||||
## Backwards Compatibility
|
||||
JoyShockLibrary v2 changes the gyro and accelerometer axes from previous versions. Previous versions were inconsistent between gyro and accelerometer. When upgrading to JoyShockLibrary v2, in order to maintain previous behaviour:
|
||||
* Invert Gyro X
|
||||
* Swap Accel Z and Y
|
||||
* Then invert Accel Z
|
||||
|
||||
## Credits
|
||||
I'm Jibb Smart, and I made JoyShockLibrary. JoyShockLibrary has also benefited from the contributions of:
|
||||
* Romeo Calota (Linux support + general portability improvements)
|
||||
* RollinBarrel (touchpad support)
|
||||
* Robin (wireless DS4/5 support)
|
||||
|
||||
JoyShockLibrary uses substantial portions of mfosse's [JoyCon-Driver](https://github.com/mfosse/JoyCon-Driver), a [vJoy](http://vjoystick.sourceforge.net/site/) feeder for most communication with Nintendo devices, building on it with info from dekuNukem's [Nintendo Switch Reverse Engineering](https://github.com/dekuNukem/Nintendo_Switch_Reverse_Engineering/) page in order to (for example) unpack all gyro and accelerometer samples from each report.
|
||||
|
||||
JoyShockLibrary's DualShock 4 support would likely not be possible without the info available on [PSDevWiki](https://www.psdevwiki.com/ps4/Main_Page) and [Eleccelerator Wiki](http://eleccelerator.com/wiki/index.php?title=DualShock_4). chrippa's [ds4drv](https://github.com/chrippa/ds4drv) was also a handy reference for getting rumble and lights working right away, and some changes have been made while referencing Ryochan7's [DS4Windows](https://github.com/Ryochan7/DS4Windows).
|
||||
|
||||
This software depends on signal11's [HIDAPI](https://github.com/signal11/hidapi) to connect to USB and Bluetooth devices.
|
||||
|
||||
## Helpful Resources
|
||||
* [GyroWiki](http://gyrowiki.jibbsmart.com) - All about good gyro controls for games:
|
||||
* Why gyro controls make gaming better;
|
||||
* How developers can do a better job implementing gyro controls;
|
||||
* How to use JoyShockLibrary;
|
||||
* How gamers can play any PC game with gyro controls using [JoyShockMapper](https://github.com/JibbSmart/JoyShockMapper), which uses JoyShockLibrary to read from supported controllers.
|
||||
|
||||
## License
|
||||
JoyShockLibrary is licensed under the MIT License - see [LICENSE.md](LICENSE.md).
|
7
Assets/Plugins/JSL/README.md.meta
Normal file
7
Assets/Plugins/JSL/README.md.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9e1b398aaf3d3a8429068830e3168b86
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Plugins/JSL/x64.meta
Normal file
8
Assets/Plugins/JSL/x64.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 46ec8bf5775b6af429f16d7140f02d54
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/JSL/x64/JoyShockLibrary.dll
Normal file
BIN
Assets/Plugins/JSL/x64/JoyShockLibrary.dll
Normal file
Binary file not shown.
63
Assets/Plugins/JSL/x64/JoyShockLibrary.dll.meta
Normal file
63
Assets/Plugins/JSL/x64/JoyShockLibrary.dll.meta
Normal file
|
@ -0,0 +1,63 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c84ef0f74efdfa149b54ff639acd7c7b
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Editor: 0
|
||||
Exclude Linux64: 0
|
||||
Exclude OSXUniversal: 0
|
||||
Exclude Win: 1
|
||||
Exclude Win64: 0
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/JSL/x64/JoyShockLibrary.exp
Normal file
BIN
Assets/Plugins/JSL/x64/JoyShockLibrary.exp
Normal file
Binary file not shown.
7
Assets/Plugins/JSL/x64/JoyShockLibrary.exp.meta
Normal file
7
Assets/Plugins/JSL/x64/JoyShockLibrary.exp.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8290861ef07e2d74497c02c16ea45608
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/JSL/x64/JoyShockLibrary.lib
Normal file
BIN
Assets/Plugins/JSL/x64/JoyShockLibrary.lib
Normal file
Binary file not shown.
7
Assets/Plugins/JSL/x64/JoyShockLibrary.lib.meta
Normal file
7
Assets/Plugins/JSL/x64/JoyShockLibrary.lib.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 309dd656c95dd434ba2f1ccefa8b3ec0
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/JSL/x64/libJoyShockLibrary.so
Normal file
BIN
Assets/Plugins/JSL/x64/libJoyShockLibrary.so
Normal file
Binary file not shown.
27
Assets/Plugins/JSL/x64/libJoyShockLibrary.so.meta
Normal file
27
Assets/Plugins/JSL/x64/libJoyShockLibrary.so.meta
Normal file
|
@ -0,0 +1,27 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c785dbfac2c67974fa1cce056df6404d
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Plugins/JSL/x86.meta
Normal file
8
Assets/Plugins/JSL/x86.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 099214b717710f8468369d6cfe2f7135
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/JSL/x86/JoyShockLibrary.dll
Normal file
BIN
Assets/Plugins/JSL/x86/JoyShockLibrary.dll
Normal file
Binary file not shown.
63
Assets/Plugins/JSL/x86/JoyShockLibrary.dll.meta
Normal file
63
Assets/Plugins/JSL/x86/JoyShockLibrary.dll.meta
Normal file
|
@ -0,0 +1,63 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c603b06f7fc73b9448935991b913d915
|
||||
PluginImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
defineConstraints: []
|
||||
isPreloaded: 0
|
||||
isOverridable: 0
|
||||
isExplicitlyReferenced: 0
|
||||
validateReferences: 1
|
||||
platformData:
|
||||
- first:
|
||||
: Any
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
Exclude Editor: 1
|
||||
Exclude Linux64: 0
|
||||
Exclude OSXUniversal: 0
|
||||
Exclude Win: 0
|
||||
Exclude Win64: 1
|
||||
- first:
|
||||
Any:
|
||||
second:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
- first:
|
||||
Editor: Editor
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
DefaultValueInitialized: true
|
||||
OS: AnyOS
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/JSL/x86/JoyShockLibrary.exp
Normal file
BIN
Assets/Plugins/JSL/x86/JoyShockLibrary.exp
Normal file
Binary file not shown.
7
Assets/Plugins/JSL/x86/JoyShockLibrary.exp.meta
Normal file
7
Assets/Plugins/JSL/x86/JoyShockLibrary.exp.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 47521c369c3ab7849aeb7e479bad21ea
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/JSL/x86/JoyShockLibrary.lib
Normal file
BIN
Assets/Plugins/JSL/x86/JoyShockLibrary.lib
Normal file
Binary file not shown.
7
Assets/Plugins/JSL/x86/JoyShockLibrary.lib.meta
Normal file
7
Assets/Plugins/JSL/x86/JoyShockLibrary.lib.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 12b152ed16fe1eb4698be175f621ffe4
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
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:
|
||||
|
|
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 it is too large
Load diff
File diff suppressed because it is too large
Load diff
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
|
@ -15,10 +15,48 @@ AudioMixerGroupController:
|
|||
m_Send: 00000000000000000000000000000000
|
||||
m_Effects:
|
||||
- {fileID: -3827691611382659438}
|
||||
- {fileID: -7417416911555589299}
|
||||
- {fileID: -4864457926502934139}
|
||||
m_UserColorIndex: 0
|
||||
m_Mute: 0
|
||||
m_Solo: 0
|
||||
m_BypassEffects: 0
|
||||
--- !u!244 &-7417416911555589299
|
||||
AudioMixerEffectController:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_EffectID: 5b8f1b47430c37f4aa6afd61b4f32eec
|
||||
m_EffectName: Highpass
|
||||
m_MixLevel: c5fb06afbdfde63429bee2da9ea91189
|
||||
m_Parameters:
|
||||
- m_ParameterName: Cutoff freq
|
||||
m_GUID: 34d86eacd61c28340b115290d5f25b76
|
||||
- m_ParameterName: Resonance
|
||||
m_GUID: 10bb5a0f2787ab54db70b685b5d01d0b
|
||||
m_SendTarget: {fileID: 0}
|
||||
m_EnableWetMix: 0
|
||||
m_Bypass: 0
|
||||
--- !u!244 &-4864457926502934139
|
||||
AudioMixerEffectController:
|
||||
m_ObjectHideFlags: 3
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_Name:
|
||||
m_EffectID: 5739ec919cbf73c429b7bfd3d5c17692
|
||||
m_EffectName: Lowpass
|
||||
m_MixLevel: bf479ffff7901754b93db8cd04a5b69b
|
||||
m_Parameters:
|
||||
- m_ParameterName: Cutoff freq
|
||||
m_GUID: 89e57fda42bbd884c9b50b8cfffb46f6
|
||||
- m_ParameterName: Resonance
|
||||
m_GUID: 1505a38b6ed3ac044b1b27d1e026ee10
|
||||
m_SendTarget: {fileID: 0}
|
||||
m_EnableWetMix: 0
|
||||
m_Bypass: 0
|
||||
--- !u!244 &-3827691611382659438
|
||||
AudioMixerEffectController:
|
||||
m_ObjectHideFlags: 3
|
||||
|
@ -104,13 +142,32 @@ AudioMixerSnapshotController:
|
|||
m_SnapshotID: cbd5c1fb10b276940af4ad86481f0172
|
||||
m_FloatValues:
|
||||
9dd04840cf4676047b2e26e659ca4069: 1661
|
||||
65da18c00dad8f642a1f04b10bc4d3fa: -9.8
|
||||
2b8f30d01b6887a4a9a1c346efb59529: 0.96
|
||||
152a0691009a459488775726d7da2a76: 0
|
||||
b32285822a3582a46bc02ae0bb31edd0: 0
|
||||
16419c92ecf0c4743a61bae82f0cd39d: 0.96
|
||||
3537f1d2761ea514aad24adbde59814c: 0.5
|
||||
9cca3334388db1b4cb9a564a2d81e1d9: 2909
|
||||
44f9a634893e4074e976e9bbdd1798de: 2909
|
||||
43b77be4dcaecc64dad266d1ce7ec63b: 0
|
||||
4bc95d762bab08f4397b7609394e744d: 0
|
||||
df5d5286217f286439c16cde82518c34: 0
|
||||
3efb01d650e14ea499166db104c3fef0: 1661
|
||||
03f31c284979509419018c8192731634: 2064
|
||||
9032eb9801098ed4eaa00396d75cac0c: -9.8
|
||||
5236511a7a103314ba1c738dd5b09f64: 2064
|
||||
994ac19a5841d5747a8d4e85c1068fb2: 10
|
||||
89e57fda42bbd884c9b50b8cfffb46f6: 22000
|
||||
97da122bdf1007b4dbcb38293f8ad4ce: 6983
|
||||
46ae8f9b0a8b2c94da3f936b6675c718: 4
|
||||
1b5e174cdc33a544cb4195a5aba09219: 4
|
||||
34d86eacd61c28340b115290d5f25b76: 10
|
||||
74a2868d38bb05a40b9f820d98dfc3a9: -10000
|
||||
8170201e04f44b44fa0a6811cbd98865: 0.1
|
||||
7392d42e828461d4fbea16ee69eecec3: 0.06
|
||||
3549d05eae7b26c42ba4beb170a39a43: 0.96
|
||||
4963fceebf3ef7c499597c1c62bdc06b: 0.96
|
||||
0d54293f1eb308e4f9eb23e744bae623: 1
|
||||
911cb1bf4bb1b624ab3a68e1eb57ba29: 10
|
||||
m_TransitionOverrides: {}
|
||||
|
@ -124,15 +181,19 @@ AudioMixerSnapshotController:
|
|||
m_AudioMixer: {fileID: 24100000}
|
||||
m_SnapshotID: 63d5780e5b890af43a13ba2a5e7fd23d
|
||||
m_FloatValues:
|
||||
8ac1b110f403261418b718a0a6962426: -9.8
|
||||
9dd04840cf4676047b2e26e659ca4069: 1661
|
||||
152a0691009a459488775726d7da2a76: 0
|
||||
152a0691009a459488775726d7da2a76: 16
|
||||
b32285822a3582a46bc02ae0bb31edd0: 0
|
||||
3537f1d2761ea514aad24adbde59814c: 0.5
|
||||
1f89dac5f0e643c4ab8774d8ad05e968: 2.79
|
||||
4bc95d762bab08f4397b7609394e744d: 0
|
||||
3efb01d650e14ea499166db104c3fef0: 1661
|
||||
994ac19a5841d5747a8d4e85c1068fb2: 1121
|
||||
89e57fda42bbd884c9b50b8cfffb46f6: 2064
|
||||
97da122bdf1007b4dbcb38293f8ad4ce: 6983
|
||||
34d86eacd61c28340b115290d5f25b76: 2909
|
||||
3890ccbecfbaacd42a9fda6a955eeab8: 4
|
||||
0d54293f1eb308e4f9eb23e744bae623: 3.99
|
||||
911cb1bf4bb1b624ab3a68e1eb57ba29: 7184
|
||||
m_TransitionOverrides: {}
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
fileFormatVersion: 2
|
||||
<<<<<<< HEAD
|
||||
guid: 9c501a8142ad27f40849d560bbfd92ee
|
||||
=======
|
||||
guid: dc6e8852986995b4b8ffd6d6e4f79323
|
||||
>>>>>>> d65cae24d2db1df6a0e5bb4d3bd4e86fe633985f
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
|
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
|
@ -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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue