mirror of
https://github.com/alee14-projects/Project-Sandbox.git
synced 2025-01-22 08:51:48 -05:00
Discord RPC; Removed jumping function for now
This commit is contained in:
parent
df8769c71a
commit
0f7e3ced25
43 changed files with 4936 additions and 53 deletions
|
@ -0,0 +1,5 @@
|
|||
<component name="ProjectCodeStyleConfiguration">
|
||||
<state>
|
||||
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
|
||||
</state>
|
||||
</component>
|
|
@ -5,6 +5,7 @@
|
|||
<e p="$USER_HOME$/.cache/JetBrains/Rider2020.2/resharper-host/local/Transient/Rider/v202/SolutionCaches/_Project Sandbox.-2130575860.00" t="ExcludeRecursive" />
|
||||
<e p="$PROJECT_DIR$" t="IncludeRecursive">
|
||||
<e p="Assembly-CSharp-Editor.csproj" t="IncludeRecursive" />
|
||||
<e p="Assembly-CSharp-firstpass.csproj" t="IncludeRecursive" />
|
||||
<e p="Assembly-CSharp.csproj" t="IncludeRecursive" />
|
||||
<e p="Assets" t="Include">
|
||||
<e p="Fonts" t="Include">
|
||||
|
@ -16,6 +17,17 @@
|
|||
<e p="PlayerControls.cs" t="Include" />
|
||||
<e p="README.txt" t="Include" />
|
||||
</e>
|
||||
<e p="Plugins" t="Include">
|
||||
<e p="DiscordGameSDK" t="Include">
|
||||
<e p="ActivityManager.cs" t="Include" />
|
||||
<e p="Constants.cs" t="Include" />
|
||||
<e p="Core.cs" t="Include" />
|
||||
<e p="ImageManager.cs" t="Include" />
|
||||
<e p="LobbyManager.cs" t="Include" />
|
||||
<e p="StorageManager.cs" t="Include" />
|
||||
<e p="StoreManager.cs" t="Include" />
|
||||
</e>
|
||||
</e>
|
||||
<e p="Scripts" t="Include">
|
||||
<e p="AudioManager.cs" t="Include" />
|
||||
<e p="Dialogue" t="Include">
|
||||
|
@ -23,6 +35,7 @@
|
|||
<e p="DialogueManager.cs" t="Include" />
|
||||
<e p="DialogueTrigger.cs" t="Include" />
|
||||
</e>
|
||||
<e p="DiscordController.cs" t="Include" />
|
||||
<e p="LoadScene.cs" t="Include" />
|
||||
<e p="MouseLook.cs" t="Include" />
|
||||
<e p="PauseMenu.cs" t="Include" />
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
<Path>.idea</Path>
|
||||
<Path>Build</Path>
|
||||
<Path>Library</Path>
|
||||
<Path>Temp</Path>
|
||||
<Path>obj</Path>
|
||||
</explicitExcludes>
|
||||
</component>
|
||||
|
|
|
@ -43,7 +43,7 @@ public class @PlayerControls : IInputActionCollection, IDisposable
|
|||
""interactions"": """"
|
||||
},
|
||||
{
|
||||
""name"": ""UnlockCursor"",
|
||||
""name"": ""Pause"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""9245a8ae-c817-4f60-9b78-f639dd4a52f0"",
|
||||
""expectedControlType"": ""Button"",
|
||||
|
@ -242,11 +242,11 @@ public class @PlayerControls : IInputActionCollection, IDisposable
|
|||
{
|
||||
""name"": """",
|
||||
""id"": ""5fe61161-b433-47e3-b01b-f299068b92ae"",
|
||||
""path"": ""<Keyboard>/f1"",
|
||||
""path"": ""<Keyboard>/escape"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": ""Keyboard and Mouse"",
|
||||
""action"": ""UnlockCursor"",
|
||||
""action"": ""Pause"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
|
@ -288,7 +288,7 @@ public class @PlayerControls : IInputActionCollection, IDisposable
|
|||
m_Gameplay_Move = m_Gameplay.FindAction("Move", throwIfNotFound: true);
|
||||
m_Gameplay_Jump = m_Gameplay.FindAction("Jump", throwIfNotFound: true);
|
||||
m_Gameplay_Look = m_Gameplay.FindAction("Look", throwIfNotFound: true);
|
||||
m_Gameplay_UnlockCursor = m_Gameplay.FindAction("UnlockCursor", throwIfNotFound: true);
|
||||
m_Gameplay_Pause = m_Gameplay.FindAction("Pause", throwIfNotFound: true);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
@ -341,7 +341,7 @@ public class @PlayerControls : IInputActionCollection, IDisposable
|
|||
private readonly InputAction m_Gameplay_Move;
|
||||
private readonly InputAction m_Gameplay_Jump;
|
||||
private readonly InputAction m_Gameplay_Look;
|
||||
private readonly InputAction m_Gameplay_UnlockCursor;
|
||||
private readonly InputAction m_Gameplay_Pause;
|
||||
public struct GameplayActions
|
||||
{
|
||||
private @PlayerControls m_Wrapper;
|
||||
|
@ -349,7 +349,7 @@ public class @PlayerControls : IInputActionCollection, IDisposable
|
|||
public InputAction @Move => m_Wrapper.m_Gameplay_Move;
|
||||
public InputAction @Jump => m_Wrapper.m_Gameplay_Jump;
|
||||
public InputAction @Look => m_Wrapper.m_Gameplay_Look;
|
||||
public InputAction @UnlockCursor => m_Wrapper.m_Gameplay_UnlockCursor;
|
||||
public InputAction @Pause => m_Wrapper.m_Gameplay_Pause;
|
||||
public InputActionMap Get() { return m_Wrapper.m_Gameplay; }
|
||||
public void Enable() { Get().Enable(); }
|
||||
public void Disable() { Get().Disable(); }
|
||||
|
@ -368,9 +368,9 @@ public class @PlayerControls : IInputActionCollection, IDisposable
|
|||
@Look.started -= m_Wrapper.m_GameplayActionsCallbackInterface.OnLook;
|
||||
@Look.performed -= m_Wrapper.m_GameplayActionsCallbackInterface.OnLook;
|
||||
@Look.canceled -= m_Wrapper.m_GameplayActionsCallbackInterface.OnLook;
|
||||
@UnlockCursor.started -= m_Wrapper.m_GameplayActionsCallbackInterface.OnUnlockCursor;
|
||||
@UnlockCursor.performed -= m_Wrapper.m_GameplayActionsCallbackInterface.OnUnlockCursor;
|
||||
@UnlockCursor.canceled -= m_Wrapper.m_GameplayActionsCallbackInterface.OnUnlockCursor;
|
||||
@Pause.started -= m_Wrapper.m_GameplayActionsCallbackInterface.OnPause;
|
||||
@Pause.performed -= m_Wrapper.m_GameplayActionsCallbackInterface.OnPause;
|
||||
@Pause.canceled -= m_Wrapper.m_GameplayActionsCallbackInterface.OnPause;
|
||||
}
|
||||
m_Wrapper.m_GameplayActionsCallbackInterface = instance;
|
||||
if (instance != null)
|
||||
|
@ -384,9 +384,9 @@ public class @PlayerControls : IInputActionCollection, IDisposable
|
|||
@Look.started += instance.OnLook;
|
||||
@Look.performed += instance.OnLook;
|
||||
@Look.canceled += instance.OnLook;
|
||||
@UnlockCursor.started += instance.OnUnlockCursor;
|
||||
@UnlockCursor.performed += instance.OnUnlockCursor;
|
||||
@UnlockCursor.canceled += instance.OnUnlockCursor;
|
||||
@Pause.started += instance.OnPause;
|
||||
@Pause.performed += instance.OnPause;
|
||||
@Pause.canceled += instance.OnPause;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -414,6 +414,6 @@ public class @PlayerControls : IInputActionCollection, IDisposable
|
|||
void OnMove(InputAction.CallbackContext context);
|
||||
void OnJump(InputAction.CallbackContext context);
|
||||
void OnLook(InputAction.CallbackContext context);
|
||||
void OnUnlockCursor(InputAction.CallbackContext context);
|
||||
void OnPause(InputAction.CallbackContext context);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
"interactions": ""
|
||||
},
|
||||
{
|
||||
"name": "UnlockCursor",
|
||||
"name": "Pause",
|
||||
"type": "Button",
|
||||
"id": "9245a8ae-c817-4f60-9b78-f639dd4a52f0",
|
||||
"expectedControlType": "Button",
|
||||
|
@ -229,11 +229,11 @@
|
|||
{
|
||||
"name": "",
|
||||
"id": "5fe61161-b433-47e3-b01b-f299068b92ae",
|
||||
"path": "<Keyboard>/f1",
|
||||
"path": "<Keyboard>/escape",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "Keyboard and Mouse",
|
||||
"action": "UnlockCursor",
|
||||
"action": "Pause",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
}
|
||||
|
|
8
Assets/Plugins.meta
Normal file
8
Assets/Plugins.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 5c225cdf34a484b7db6ad3c7d9bbbf9b
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Plugins/DiscordGameSDK.meta
Normal file
8
Assets/Plugins/DiscordGameSDK.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c0cbcee126bf415318012b080c8cf955
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
12
Assets/Plugins/DiscordGameSDK/ActivityManager.cs
Normal file
12
Assets/Plugins/DiscordGameSDK/ActivityManager.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
using System;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
public partial class ActivityManager
|
||||
{
|
||||
public void RegisterCommand()
|
||||
{
|
||||
RegisterCommand(null);
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Plugins/DiscordGameSDK/ActivityManager.cs.meta
Normal file
11
Assets/Plugins/DiscordGameSDK/ActivityManager.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 3b8d561750b35286ab9a5b9972dd6451
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
9
Assets/Plugins/DiscordGameSDK/Constants.cs
Normal file
9
Assets/Plugins/DiscordGameSDK/Constants.cs
Normal file
|
@ -0,0 +1,9 @@
|
|||
using System;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
static class Constants
|
||||
{
|
||||
public const string DllName = "discord_game_sdk";
|
||||
}
|
||||
}
|
11
Assets/Plugins/DiscordGameSDK/Constants.cs.meta
Normal file
11
Assets/Plugins/DiscordGameSDK/Constants.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: c7f39ba4d38d50b0e9e5fcf3563134c1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
4199
Assets/Plugins/DiscordGameSDK/Core.cs
Normal file
4199
Assets/Plugins/DiscordGameSDK/Core.cs
Normal file
File diff suppressed because it is too large
Load diff
11
Assets/Plugins/DiscordGameSDK/Core.cs.meta
Normal file
11
Assets/Plugins/DiscordGameSDK/Core.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e4d828f93ba636abf8eeb1ff2b217cbf
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
53
Assets/Plugins/DiscordGameSDK/ImageManager.cs
Normal file
53
Assets/Plugins/DiscordGameSDK/ImageManager.cs
Normal file
|
@ -0,0 +1,53 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
#if UNITY_EDITOR || UNITY_STANDALONE
|
||||
using UnityEngine;
|
||||
#endif
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
public partial struct ImageHandle
|
||||
{
|
||||
static public ImageHandle User(Int64 id)
|
||||
{
|
||||
return User(id, 128);
|
||||
}
|
||||
|
||||
static public ImageHandle User(Int64 id, UInt32 size)
|
||||
{
|
||||
return new ImageHandle
|
||||
{
|
||||
Type = ImageType.User,
|
||||
Id = id,
|
||||
Size = size,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public partial class ImageManager
|
||||
{
|
||||
public void Fetch(ImageHandle handle, FetchHandler callback)
|
||||
{
|
||||
Fetch(handle, false, callback);
|
||||
}
|
||||
|
||||
public byte[] GetData(ImageHandle handle)
|
||||
{
|
||||
var dimensions = GetDimensions(handle);
|
||||
var data = new byte[dimensions.Width * dimensions.Height * 4];
|
||||
GetData(handle, data);
|
||||
return data;
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR || UNITY_STANDALONE
|
||||
public Texture2D GetTexture(ImageHandle handle)
|
||||
{
|
||||
var dimensions = GetDimensions(handle);
|
||||
var texture = new Texture2D((int)dimensions.Width, (int)dimensions.Height, TextureFormat.RGBA32, false, true);
|
||||
texture.LoadRawTextureData(GetData(handle));
|
||||
texture.Apply();
|
||||
return texture;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
11
Assets/Plugins/DiscordGameSDK/ImageManager.cs.meta
Normal file
11
Assets/Plugins/DiscordGameSDK/ImageManager.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 97814a07c22d331d3953871fc8bf9e23
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
26
Assets/Plugins/DiscordGameSDK/LobbyManager.cs
Normal file
26
Assets/Plugins/DiscordGameSDK/LobbyManager.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
public partial class LobbyManager
|
||||
{
|
||||
public IEnumerable<User> GetMemberUsers(Int64 lobbyID)
|
||||
{
|
||||
var memberCount = MemberCount(lobbyID);
|
||||
var members = new List<User>();
|
||||
for (var i = 0; i < memberCount; i++)
|
||||
{
|
||||
members.Add(GetMemberUser(lobbyID, GetMemberUserId(lobbyID, i)));
|
||||
}
|
||||
return members;
|
||||
}
|
||||
|
||||
public void SendLobbyMessage(Int64 lobbyID, string data, SendLobbyMessageHandler handler)
|
||||
{
|
||||
SendLobbyMessage(lobbyID, Encoding.UTF8.GetBytes(data), handler);
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Plugins/DiscordGameSDK/LobbyManager.cs.meta
Normal file
11
Assets/Plugins/DiscordGameSDK/LobbyManager.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 87a4ed26db6533d25aa27dd18878f906
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
20
Assets/Plugins/DiscordGameSDK/StorageManager.cs
Normal file
20
Assets/Plugins/DiscordGameSDK/StorageManager.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
public partial class StorageManager
|
||||
{
|
||||
public IEnumerable<FileStat> Files()
|
||||
{
|
||||
var fileCount = Count();
|
||||
var files = new List<FileStat>();
|
||||
for (var i = 0; i < fileCount; i++)
|
||||
{
|
||||
files.Add(StatAt(i));
|
||||
}
|
||||
return files;
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Plugins/DiscordGameSDK/StorageManager.cs.meta
Normal file
11
Assets/Plugins/DiscordGameSDK/StorageManager.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 96c8280fa7aa3b74ba62193e69e5eaf7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
32
Assets/Plugins/DiscordGameSDK/StoreManager.cs
Normal file
32
Assets/Plugins/DiscordGameSDK/StoreManager.cs
Normal file
|
@ -0,0 +1,32 @@
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
public partial class StoreManager
|
||||
{
|
||||
public IEnumerable<Entitlement> GetEntitlements()
|
||||
{
|
||||
var count = CountEntitlements();
|
||||
var entitlements = new List<Entitlement>();
|
||||
for (var i = 0; i < count; i++)
|
||||
{
|
||||
entitlements.Add(GetEntitlementAt(i));
|
||||
}
|
||||
return entitlements;
|
||||
}
|
||||
|
||||
public IEnumerable<Sku> GetSkus()
|
||||
{
|
||||
var count = CountSkus();
|
||||
var skus = new List<Sku>();
|
||||
for (var i = 0; i < count; i++)
|
||||
{
|
||||
skus.Add(GetSkuAt(i));
|
||||
}
|
||||
return skus;
|
||||
}
|
||||
}
|
||||
}
|
11
Assets/Plugins/DiscordGameSDK/StoreManager.cs.meta
Normal file
11
Assets/Plugins/DiscordGameSDK/StoreManager.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ec47bab9bbdf1914c9f2f5b2f4e98062
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Plugins/x86.meta
Normal file
8
Assets/Plugins/x86.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: e1f3dcb6922e1ea68b7302986ad0f958
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/x86/discord_game_sdk.dll
Normal file
BIN
Assets/Plugins/x86/discord_game_sdk.dll
Normal file
Binary file not shown.
BIN
Assets/Plugins/x86/discord_game_sdk.dll.lib
Normal file
BIN
Assets/Plugins/x86/discord_game_sdk.dll.lib
Normal file
Binary file not shown.
7
Assets/Plugins/x86/discord_game_sdk.dll.lib.meta
Normal file
7
Assets/Plugins/x86/discord_game_sdk.dll.lib.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 39a41f7d2ed3ea8d688d774f593943bd
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
52
Assets/Plugins/x86/discord_game_sdk.dll.meta
Normal file
52
Assets/Plugins/x86/discord_game_sdk.dll.meta
Normal file
|
@ -0,0 +1,52 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4c7e8a782bdad32eabbd82a646917a71
|
||||
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:
|
||||
CPU: x86
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
8
Assets/Plugins/x86_64.meta
Normal file
8
Assets/Plugins/x86_64.meta
Normal file
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2bffcc684a3842f2eabdbd56bf44c0a1
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/x86_64/discord_game_sdk.bundle
Normal file
BIN
Assets/Plugins/x86_64/discord_game_sdk.bundle
Normal file
Binary file not shown.
52
Assets/Plugins/x86_64/discord_game_sdk.bundle.meta
Normal file
52
Assets/Plugins/x86_64/discord_game_sdk.bundle.meta
Normal file
|
@ -0,0 +1,52 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7691cdbfb1c9ee0f38d215b4e4392033
|
||||
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:
|
||||
CPU: x86_64
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/x86_64/discord_game_sdk.dll
Normal file
BIN
Assets/Plugins/x86_64/discord_game_sdk.dll
Normal file
Binary file not shown.
BIN
Assets/Plugins/x86_64/discord_game_sdk.dll.lib
Normal file
BIN
Assets/Plugins/x86_64/discord_game_sdk.dll.lib
Normal file
Binary file not shown.
7
Assets/Plugins/x86_64/discord_game_sdk.dll.lib.meta
Normal file
7
Assets/Plugins/x86_64/discord_game_sdk.dll.lib.meta
Normal file
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 10e7a841af5c4ef91a266ae16dfb4334
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
52
Assets/Plugins/x86_64/discord_game_sdk.dll.meta
Normal file
52
Assets/Plugins/x86_64/discord_game_sdk.dll.meta
Normal file
|
@ -0,0 +1,52 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 863ae08263ce48ca097fd7e62b182c94
|
||||
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:
|
||||
CPU: x86_64
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/x86_64/discord_game_sdk.dylib
Normal file
BIN
Assets/Plugins/x86_64/discord_game_sdk.dylib
Normal file
Binary file not shown.
52
Assets/Plugins/x86_64/discord_game_sdk.dylib.meta
Normal file
52
Assets/Plugins/x86_64/discord_game_sdk.dylib.meta
Normal file
|
@ -0,0 +1,52 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7cbb90409a56b7dbd8ba5e0980c79c67
|
||||
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:
|
||||
CPU: x86_64
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
BIN
Assets/Plugins/x86_64/discord_game_sdk.so
Normal file
BIN
Assets/Plugins/x86_64/discord_game_sdk.so
Normal file
Binary file not shown.
52
Assets/Plugins/x86_64/discord_game_sdk.so.meta
Normal file
52
Assets/Plugins/x86_64/discord_game_sdk.so.meta
Normal file
|
@ -0,0 +1,52 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 596275f3bfa576959992164e1602579d
|
||||
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:
|
||||
CPU: x86_64
|
||||
DefaultValueInitialized: true
|
||||
- first:
|
||||
Standalone: Linux64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: OSXUniversal
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: x86_64
|
||||
- first:
|
||||
Standalone: Win
|
||||
second:
|
||||
enabled: 0
|
||||
settings:
|
||||
CPU: None
|
||||
- first:
|
||||
Standalone: Win64
|
||||
second:
|
||||
enabled: 1
|
||||
settings:
|
||||
CPU: AnyCPU
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -251,7 +251,7 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 0.392}
|
||||
m_Color: {r: 0, g: 0, b: 0, a: 0.53333336}
|
||||
m_RaycastTarget: 1
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
|
@ -364,6 +364,7 @@ GameObject:
|
|||
- component: {fileID: 458945987}
|
||||
- component: {fileID: 458945989}
|
||||
- component: {fileID: 458945988}
|
||||
- component: {fileID: 458945990}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
|
@ -403,14 +404,14 @@ MonoBehaviour:
|
|||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_Font: {fileID: 12800000, guid: e9083d9e264c3c421a0956622ad97d2f, type: 3}
|
||||
m_FontSize: 14
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
|
@ -434,6 +435,21 @@ CanvasRenderer:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 458945986}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!114 &458945990
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 458945986}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: cfabb0440166ab443bba8876756fdfa9, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_EffectColor: {r: 0, g: 0, b: 0, a: 0.5}
|
||||
m_EffectDistance: {x: 1, y: -1}
|
||||
m_UseGraphicAlpha: 1
|
||||
--- !u!1 &666121541
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -603,7 +619,7 @@ MonoBehaviour:
|
|||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Alpha 0.0.1
|
||||
m_Text: Alpha 0.0.2
|
||||
--- !u!222 &767293139
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -385,10 +385,10 @@ RectTransform:
|
|||
m_Father: {fileID: 1343977746}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 0}
|
||||
m_AnchoredPosition: {x: 36, y: 88.786}
|
||||
m_SizeDelta: {x: 497.58554, y: 177.57178}
|
||||
m_SizeDelta: {x: -470.41446, y: 177.57178}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &192977406
|
||||
MonoBehaviour:
|
||||
|
@ -478,10 +478,10 @@ RectTransform:
|
|||
m_Father: {fileID: 192977405}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -159, y: 63}
|
||||
m_SizeDelta: {x: 138.02106, y: 20.783035}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 0}
|
||||
m_AnchoredPosition: {x: -159, y: 152}
|
||||
m_SizeDelta: {x: -359.97894, y: 20.783035}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &421821323
|
||||
MonoBehaviour:
|
||||
|
@ -553,7 +553,7 @@ Transform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &519581756
|
||||
MonoBehaviour:
|
||||
|
@ -602,10 +602,10 @@ RectTransform:
|
|||
m_Father: {fileID: 192977405}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: -13.300003, y: 0.9299965}
|
||||
m_SizeDelta: {x: 429.41895, y: 71.12184}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 0}
|
||||
m_AnchoredPosition: {x: -13.299988, y: 89.92999}
|
||||
m_SizeDelta: {x: -68.581055, y: 71.12184}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &557179453
|
||||
MonoBehaviour:
|
||||
|
@ -932,7 +932,7 @@ Transform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 5
|
||||
m_RootOrder: 6
|
||||
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
|
||||
--- !u!1 &832029363
|
||||
GameObject:
|
||||
|
@ -1285,7 +1285,7 @@ Transform:
|
|||
- {fileID: 1180920473}
|
||||
- {fileID: 701464660}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 6
|
||||
m_RootOrder: 7
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1133956157
|
||||
GameObject:
|
||||
|
@ -1322,8 +1322,8 @@ RectTransform:
|
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 1}
|
||||
m_AnchorMax: {x: 0, y: 1}
|
||||
m_AnchoredPosition: {x: 222.4, y: -62}
|
||||
m_SizeDelta: {x: 415.48343, y: 93.12456}
|
||||
m_AnchoredPosition: {x: 222.4, y: -79.7}
|
||||
m_SizeDelta: {x: 415.48343, y: 128.46637}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1133956159
|
||||
MonoBehaviour:
|
||||
|
@ -1357,7 +1357,8 @@ MonoBehaviour:
|
|||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: "Project: Sandbox\nPre-Alpha 0.0.1\n\xA9 Copyright 2020, Alee Productions"
|
||||
m_Text: "Project: Sandbox\nPre-Alpha 0.0.2\nGameplay DEMO\n\xA9 Copyright 2020,
|
||||
Alee Productions"
|
||||
--- !u!222 &1133956160
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -1508,6 +1509,18 @@ PrefabInstance:
|
|||
propertyPath: m_Pivot.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 22451668, guid: 0abab5bb77339e4428787a870eb31bd3, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 22451668, guid: 0abab5bb77339e4428787a870eb31bd3, type: 3}
|
||||
propertyPath: m_LocalScale.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 22451668, guid: 0abab5bb77339e4428787a870eb31bd3, type: 3}
|
||||
propertyPath: m_LocalScale.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 22460488, guid: 0abab5bb77339e4428787a870eb31bd3, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: -0.19995117
|
||||
|
@ -1798,7 +1811,7 @@ RectTransform:
|
|||
- {fileID: 192977405}
|
||||
- {fileID: 1302777225}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 4
|
||||
m_RootOrder: 5
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
|
@ -1940,7 +1953,7 @@ Transform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 2
|
||||
m_RootOrder: 4
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1603614687
|
||||
GameObject:
|
||||
|
@ -2147,9 +2160,9 @@ RectTransform:
|
|||
m_Father: {fileID: 192977405}
|
||||
m_RootOrder: 2
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 173.2, y: -62.4}
|
||||
m_AnchorMin: {x: 1, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 0}
|
||||
m_AnchoredPosition: {x: -75.8, y: 26.599998}
|
||||
m_SizeDelta: {x: 118.48511, y: 28.371979}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1986888939
|
||||
|
@ -2243,6 +2256,49 @@ CanvasRenderer:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1986888937}
|
||||
m_CullTransparentMesh: 0
|
||||
--- !u!1 &2140247657
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 2140247659}
|
||||
- component: {fileID: 2140247658}
|
||||
m_Layer: 0
|
||||
m_Name: DiscordRPCManager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &2140247658
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2140247657}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4cb25a675054556c4b6a193453e179c1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &2140247659
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2140247657}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 2.0799866, y: 19.75, z: 0.009757847}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &2143030777
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
48
Assets/Scripts/DiscordController.cs
Normal file
48
Assets/Scripts/DiscordController.cs
Normal file
|
@ -0,0 +1,48 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class DiscordController : MonoBehaviour
|
||||
{
|
||||
|
||||
public Discord.Discord discord;
|
||||
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
System.Environment.SetEnvironmentVariable("DISCORD_INSTANCE_ID", "0");
|
||||
discord = new Discord.Discord(784835227338932244, (System.UInt64)Discord.CreateFlags.Default);
|
||||
var activityManager = discord.GetActivityManager();
|
||||
var activity = new Discord.Activity
|
||||
{
|
||||
State = "In Development...",
|
||||
Details = "An upcoming Unity game by Alee!",
|
||||
Assets =
|
||||
{
|
||||
LargeImage = "wip",
|
||||
LargeText = "Work in Progress!"
|
||||
}
|
||||
};
|
||||
activityManager.UpdateActivity(activity, (res) =>
|
||||
{
|
||||
if (res == Discord.Result.Ok)
|
||||
{
|
||||
Debug.LogWarning("Everything is fine!");
|
||||
}
|
||||
});
|
||||
|
||||
activityManager.ClearActivity((result) =>
|
||||
{
|
||||
if (result == Discord.Result.Ok)
|
||||
{
|
||||
Debug.Log("Success!");
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError("Failed");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
discord.RunCallbacks();
|
||||
}
|
||||
}
|
11
Assets/Scripts/DiscordController.cs.meta
Normal file
11
Assets/Scripts/DiscordController.cs.meta
Normal file
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 4cb25a675054556c4b6a193453e179c1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -8,8 +8,6 @@ public class PlayerMovement : MonoBehaviour
|
|||
|
||||
public float gravity = -9.81f;
|
||||
|
||||
public float jumpHeight = 3f;
|
||||
|
||||
public Transform groundCheck;
|
||||
|
||||
public float groundDistance = 0.4f;
|
||||
|
@ -36,11 +34,6 @@ public class PlayerMovement : MonoBehaviour
|
|||
|
||||
controller.Move(move * speed * Time.deltaTime);
|
||||
|
||||
if (Input.GetButtonDown("Jump") && isGrounded)
|
||||
{
|
||||
velocity.y = Mathf.Sqrt(jumpHeight * -2f * gravity);
|
||||
}
|
||||
|
||||
velocity.y += gravity * Time.deltaTime;
|
||||
|
||||
controller.Move(velocity * Time.deltaTime);
|
||||
|
|
|
@ -8,7 +8,7 @@ PlayerSettings:
|
|||
AndroidProfiler: 0
|
||||
AndroidFilterTouchesWhenObscured: 0
|
||||
AndroidEnableSustainedPerformanceMode: 0
|
||||
defaultScreenOrientation: 4
|
||||
defaultScreenOrientation: 3
|
||||
targetDevice: 2
|
||||
useOnDemandResources: 0
|
||||
accelerometerFrequency: 60
|
||||
|
@ -124,9 +124,17 @@ PlayerSettings:
|
|||
16:10: 1
|
||||
16:9: 1
|
||||
Others: 1
|
||||
bundleVersion: 0.0.1
|
||||
bundleVersion: 0.0.2
|
||||
preloadedAssets:
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
- {fileID: 0}
|
||||
metroInputSource: 0
|
||||
wsaTransparentSwapchain: 0
|
||||
m_HolographicPauseOnTrackingLoss: 1
|
||||
|
@ -171,7 +179,7 @@ PlayerSettings:
|
|||
applicationIdentifier: {}
|
||||
buildNumber: {}
|
||||
AndroidBundleVersionCode: 1
|
||||
AndroidMinSdkVersion: 19
|
||||
AndroidMinSdkVersion: 26
|
||||
AndroidTargetSdkVersion: 0
|
||||
AndroidPreferredInstallLocation: 1
|
||||
aotOptions:
|
||||
|
|
Loading…
Reference in a new issue