From 78ed8d1285da62968b731f9ff1734bec955a5d0c Mon Sep 17 00:00:00 2001 From: BuildTools Date: Fri, 10 Apr 2020 08:45:04 +0300 Subject: [PATCH] npc talk to nearby players --- Jump Game/Assets/Scenes/Square.png | Bin 0 -> 78 bytes Jump Game/Assets/Scenes/Square.png.meta | 99 ++++++++++++++++++ Jump Game/Assets/Scripts/InteractionObject.cs | 15 +++ .../Assets/Scripts/InteractionObject.cs.meta | 11 ++ Jump Game/Assets/Scripts/PlayerInteract.cs | 34 ++++++ .../Assets/Scripts/PlayerInteract.cs.meta | 11 ++ Jump Game/ProjectSettings/InputManager.asset | 16 +++ Jump Game/ProjectSettings/TagManager.asset | 3 +- 8 files changed, 188 insertions(+), 1 deletion(-) create mode 100644 Jump Game/Assets/Scenes/Square.png create mode 100644 Jump Game/Assets/Scenes/Square.png.meta create mode 100644 Jump Game/Assets/Scripts/InteractionObject.cs create mode 100644 Jump Game/Assets/Scripts/InteractionObject.cs.meta create mode 100644 Jump Game/Assets/Scripts/PlayerInteract.cs create mode 100644 Jump Game/Assets/Scripts/PlayerInteract.cs.meta diff --git a/Jump Game/Assets/Scenes/Square.png b/Jump Game/Assets/Scenes/Square.png new file mode 100644 index 0000000000000000000000000000000000000000..8eb1b1ecc13b6e1d2375151866134cd7a040340c GIT binary patch literal 78 zcmeAS@N?(olHy`uVBq!ia0vp^EFjFm1|(O0oL2{=L_J*`LpWrU|M0W$cr!i aF)*;jval%k (); + } + } +} diff --git a/Jump Game/Assets/Scripts/PlayerInteract.cs.meta b/Jump Game/Assets/Scripts/PlayerInteract.cs.meta new file mode 100644 index 0000000..b135e95 --- /dev/null +++ b/Jump Game/Assets/Scripts/PlayerInteract.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1088a3f236f0e02439c2713c24252f61 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Jump Game/ProjectSettings/InputManager.asset b/Jump Game/ProjectSettings/InputManager.asset index 17c8f53..8428689 100644 --- a/Jump Game/ProjectSettings/InputManager.asset +++ b/Jump Game/ProjectSettings/InputManager.asset @@ -293,3 +293,19 @@ InputManager: type: 0 axis: 0 joyNum: 0 + - serializedVersion: 3 + m_Name: Interact + descriptiveName: + descriptiveNegativeName: + negativeButton: + positiveButton: e + altNegativeButton: + altPositiveButton: joystick button 1 + gravity: 1000 + dead: 0.001 + sensitivity: 1000 + snap: 0 + invert: 0 + type: 0 + axis: 0 + joyNum: 0 diff --git a/Jump Game/ProjectSettings/TagManager.asset b/Jump Game/ProjectSettings/TagManager.asset index 1c92a78..5f33275 100644 --- a/Jump Game/ProjectSettings/TagManager.asset +++ b/Jump Game/ProjectSettings/TagManager.asset @@ -3,7 +3,8 @@ --- !u!78 &1 TagManager: serializedVersion: 2 - tags: [] + tags: + - interObject layers: - Default - TransparentFX