1
Fork 0
mirror of https://github.com/Steffo99/better-tee.git synced 2024-11-27 17:14:18 +00:00

Complete typingmanager

This commit is contained in:
Steffo 2019-09-11 23:43:38 +02:00
parent 08671a24b5
commit cfa2d87e85
4 changed files with 7 additions and 91 deletions

View file

@ -368,12 +368,6 @@ Transform:
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 3 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!4 &1499784724 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 2942172269146964316, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
m_PrefabInstance: {fileID: 2942172270378248008}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1832035424 --- !u!1 &1832035424
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -400,87 +394,7 @@ Transform:
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: m_Children: []
- {fileID: 1499784724}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 1 m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &2942172270378248008
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 1832035425}
m_Modifications:
- target: {fileID: 2942172269146964315, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: m_Name
value: Typing Manager
objectReference: {fileID: 0}
- target: {fileID: 2942172269146964316, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2942172269146964316, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2942172269146964316, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2942172269146964316, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2942172269146964316, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2942172269146964316, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2942172269146964316, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2942172269146964316, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: m_RootOrder
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2942172269146964316, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2942172269146964316, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2942172269146964316, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2942172269146964317, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: settings.actName
value: Fase degli slogan
objectReference: {fileID: 0}
- target: {fileID: 2942172269146964317, guid: d91131f9599079b4d96bfefa29d77a3a,
type: 3}
propertyPath: settings.actDescription
value: Scrivi tutti gli slogan che puoi!
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: d91131f9599079b4d96bfefa29d77a3a, type: 3}

View file

@ -115,7 +115,7 @@ MonoBehaviour:
m_PressedTrigger: Pressed m_PressedTrigger: Pressed
m_SelectedTrigger: Selected m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled m_DisabledTrigger: Disabled
m_Interactable: 1 m_Interactable: 0
m_TargetGraphic: {fileID: 549540992562893919} m_TargetGraphic: {fileID: 549540992562893919}
m_TextComponent: {fileID: 549540993676942828} m_TextComponent: {fileID: 549540993676942828}
m_Placeholder: {fileID: 549540993945336864} m_Placeholder: {fileID: 549540993945336864}

View file

@ -114,7 +114,7 @@ MonoBehaviour:
m_PressedTrigger: Pressed m_PressedTrigger: Pressed
m_SelectedTrigger: Selected m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled m_DisabledTrigger: Disabled
m_Interactable: 1 m_Interactable: 0
m_TargetGraphic: {fileID: 2074529559843646464} m_TargetGraphic: {fileID: 2074529559843646464}
m_OnClick: m_OnClick:
m_PersistentCalls: m_PersistentCalls:

View file

@ -82,11 +82,13 @@ public class TypingManager : MonoBehaviour
protected void ActStart() { protected void ActStart() {
timer.TimerStart(); timer.TimerStart();
eventSystem.SetSelectedGameObject(inputField.gameObject); eventSystem.SetSelectedGameObject(inputField.gameObject);
inputField.interactable = true;
submit.GetComponent<Button>().interactable = true;
} }
protected void ActEnd(object sender, EventArgs e) { protected void ActEnd(object sender, EventArgs e) {
inputField.enabled = false; inputField.interactable = false;
submit.enabled = false; submit.GetComponent<Button>().interactable = false;
} }
public void SubmitText(string text) { public void SubmitText(string text) {