Fix accidental command bug in the console and unlink from Unity Services

This commit is contained in:
excitedneon 2017-05-09 17:15:07 +03:00
parent c07524df9f
commit 54946df097
4 changed files with 29 additions and 15 deletions

View File

@ -194,18 +194,7 @@ MonoBehaviour:
m_CharacterLimit: 0
m_OnEndEdit:
m_PersistentCalls:
m_Calls:
- m_Target: {fileID: 1463006271}
m_MethodName: CallCommand
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
m_ObjectArgumentAssemblyTypeName: UnityEngine.Object, UnityEngine
m_IntArgument: 0
m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_Calls: []
m_TypeName: UnityEngine.UI.InputField+SubmitEvent, UnityEngine.UI, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
m_OnValueChanged:

View File

@ -138,9 +138,15 @@ namespace Cyber.Console {
}
private void Update() {
// Inputs
if (Input.GetButtonDown("Console Toggle")) {
Visible = !Visible;
}
if (Input.GetButtonDown("Enter Command")) {
CallCommand();
}
// Slide up/down animation
RectTransform Rect = Panel.GetComponent<RectTransform>();
Vector2 OffsetMin = Rect.offsetMin;
if (Visible) {

View File

@ -117,6 +117,22 @@ InputManager:
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Enter Command
descriptiveName:
descriptiveNegativeName:
negativeButton:
positiveButton: return
altNegativeButton:
altPositiveButton:
gravity: 1000
dead: 0.001
sensitivity: 1000
snap: 0
invert: 0
type: 0
axis: 0
joyNum: 0
- serializedVersion: 3
m_Name: Mouse X
descriptiveName:

View File

@ -579,12 +579,15 @@ PlayerSettings:
daydreamIconForeground: {fileID: 0}
daydreamIconBackground: {fileID: 0}
cloudServicesEnabled:
Build: 0
Collab: 0
ErrorHub: 0
Hub: 0
UNet: 1
facebookSdkVersion: 7.9.1
apiCompatibilityLevel: 2
cloudProjectId: ce574e88-0640-4292-be86-1e81238c639e
projectName: Cyber
organizationId: exne
cloudProjectId:
projectName:
organizationId:
cloudEnabled: 0
enableNewInputSystem: 0