aboutsummaryrefslogtreecommitdiff
path: root/JamHelper/Assets/JamUtils
diff options
context:
space:
mode:
Diffstat (limited to 'JamHelper/Assets/JamUtils')
-rw-r--r--JamHelper/Assets/JamUtils/FPSControllerForce/README~1
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/CharacterController.meta (renamed from JamHelper/Assets/JamUtils/FPSControllerForce.meta)2
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody.meta (renamed from JamHelper/Assets/JamUtils/FPSControllerForce/Scripts.meta)2
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByAddforce.meta8
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity.meta8
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Demo.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Demo.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Demo/Scenes.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Demo/Scenes.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Demo/Scenes/FPSCharacterController.unity (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Demo/Scenes/FPSCharacterController.unity)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Demo/Scenes/FPSCharacterController.unity.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Demo/Scenes/FPSCharacterController.unity.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Prefabs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Prefabs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Prefabs/Player.prefab (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Prefabs/Player.prefab)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Prefabs/Player.prefab.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Prefabs/Player.prefab.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/README~ (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/README~)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/FPSCharacterController.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/FPSCharacterController.cs)854
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/FPSCharacterController.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/FPSCharacterController.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/GroundChecker.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/GroundChecker.cs)96
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/GroundChecker.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/GroundChecker.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/MainCameraFollow.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/MainCameraFollow.cs)38
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/MainCameraFollow.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/MainCameraFollow.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/Player.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/Player.cs)78
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/Player.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/Player.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/PlayerBody.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/PlayerBody.cs)74
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/PlayerBody.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/PlayerBody.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/StairChecker.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/StairChecker.cs)38
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/StairChecker.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/StairChecker.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/WallChecker.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/WallChecker.cs)148
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/WallChecker.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/WallChecker.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Demo.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Demo.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Prefabs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Prefabs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/MovementBase.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/MovementBase.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/MovementBase.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/MovementBase.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerDodge.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerDodge.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerDodge.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerDodge.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerDoubleJump.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerDoubleJump.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerDoubleJump.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerDoubleJump.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerJump.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerJump.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerJump.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerJump.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerLookAround.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerLookAround.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerLookAround.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerLookAround.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerMove.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerMove.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerMove.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerMove.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerMoveInAir.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerMoveInAir.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerMoveInAir.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerMoveInAir.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerRush.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerRush.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerRush.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerRush.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerShot.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerShot.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerShot.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerShot.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerSlide.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerSlide.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerSlide.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerSlide.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWalkOnSlope.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWalkOnSlope.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWalkOnSlope.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWalkOnSlope.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWalkOnStairs.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWalkOnStairs.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWalkOnStairs.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWalkOnStairs.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWallJump.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWallJump.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWallJump.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWallJump.cs.meta)0
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWallRun.cs (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWallRun.cs)36
-rw-r--r--JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWallRun.cs.meta (renamed from JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWallRun.cs.meta)0
59 files changed, 933 insertions, 918 deletions
diff --git a/JamHelper/Assets/JamUtils/FPSControllerForce/README~ b/JamHelper/Assets/JamUtils/FPSControllerForce/README~
deleted file mode 100644
index d88bda8..0000000
--- a/JamHelper/Assets/JamUtils/FPSControllerForce/README~
+++ /dev/null
@@ -1 +0,0 @@
-用rigidbody.addforce控制角色移动 \ No newline at end of file
diff --git a/JamHelper/Assets/JamUtils/FPSControllerForce.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/CharacterController.meta
index f284929..1a34056 100644
--- a/JamHelper/Assets/JamUtils/FPSControllerForce.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/CharacterController.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 63ee38b4f878d5b4485fc9a88728de5a
+guid: 4116d6209b6e3854f9ae5f2453206d25
folderAsset: yes
DefaultImporter:
externalObjects: {}
diff --git a/JamHelper/Assets/JamUtils/FPSControllerForce/Scripts.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody.meta
index 5e75d08..b02b381 100644
--- a/JamHelper/Assets/JamUtils/FPSControllerForce/Scripts.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody.meta
@@ -1,5 +1,5 @@
fileFormatVersion: 2
-guid: 6edf0b92cafcfd640bfeda91783310c5
+guid: 4b030d3e6a1ede14e8187c1493c1124f
folderAsset: yes
DefaultImporter:
externalObjects: {}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByAddforce.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByAddforce.meta
new file mode 100644
index 0000000..f1a793c
--- /dev/null
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByAddforce.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 84a1763cb1fa56e4aaab3ee2031b8ffb
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity.meta
new file mode 100644
index 0000000..1749407
--- /dev/null
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: e7d0a15f0c0aac0498e1bfafc359fd4d
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Demo.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Demo.meta
index 2a00aa8..2a00aa8 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Demo.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Demo.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Demo/Scenes.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Demo/Scenes.meta
index 0c66c80..0c66c80 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Demo/Scenes.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Demo/Scenes.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Demo/Scenes/FPSCharacterController.unity b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Demo/Scenes/FPSCharacterController.unity
index 86d3da1..86d3da1 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Demo/Scenes/FPSCharacterController.unity
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Demo/Scenes/FPSCharacterController.unity
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Demo/Scenes/FPSCharacterController.unity.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Demo/Scenes/FPSCharacterController.unity.meta
index 952bd1e..952bd1e 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Demo/Scenes/FPSCharacterController.unity.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Demo/Scenes/FPSCharacterController.unity.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Prefabs.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Prefabs.meta
index e67db62..e67db62 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Prefabs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Prefabs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Prefabs/Player.prefab b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Prefabs/Player.prefab
index de44de1..de44de1 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Prefabs/Player.prefab
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Prefabs/Player.prefab
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Prefabs/Player.prefab.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Prefabs/Player.prefab.meta
index 689e2b6..689e2b6 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Prefabs/Player.prefab.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Prefabs/Player.prefab.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/README~ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/README~
index c240298..c240298 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/README~
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/README~
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts.meta
index 0156136..0156136 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/FPSCharacterController.cs b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/FPSCharacterController.cs
index db0cb20..2765025 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/FPSCharacterController.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/FPSCharacterController.cs
@@ -1,431 +1,431 @@
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-namespace JamUtils
-{
-
- // µÚÒ»È˳ƽÇÉ«¿ØÖÆ
- public class FPSCharacterController : MonoBehaviour
- {
- [Flags]
- public enum CharacterModule
- {
- None,
- LookAround = 1 << 0, // Ïà»ú»·ÈÆ
- MoveAround = 1 << 1, // ˮƽµØÃæÒƶ¯
- MoveInAir = 1 << 2, // ¿ÕÖÐÒÆ¶¯
- Dodge = 1 << 3, // ³å´Ì
- Rush = 1 << 4, // ¼ÓËÙ
- WalkOnSlope = 1 << 5 | 1 << 1, // Ð±ÃæÒÆ¶¯
- WalkOnStairs = 1 << 6 | 1 << 1, // Â¥ÌÝÒÆ¶¯
- WallRun = 1 << 7, // ·ÉéÜ×ß±Ú
- Jump = 1 << 8, // ÌøÔ¾
- WallJump = 1 << 9, // ÈÌÕßÌø
- Slide = 1 << 10, // »¬²ù
- Shot = 1 << 11, // Éä»÷
- Step = 1 << 12, // ½Å²½
- PullTrick = 1 << 13, //
- ExtraGravity = 1 << 14, // ¶îÍâÖØÁ¦
- Crouch = 1 << 15,
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+namespace JamUtils
+{
+
+ // µÚÒ»È˳ƽÇÉ«¿ØÖÆ
+ public class FPSCharacterController : MonoBehaviour
+ {
+ [Flags]
+ public enum CharacterModule
+ {
+ None,
+ LookAround = 1 << 0, // Ïà»ú»·ÈÆ
+ MoveAround = 1 << 1, // ˮƽµØÃæÒƶ¯
+ MoveInAir = 1 << 2, // ¿ÕÖÐÒÆ¶¯
+ Dodge = 1 << 3, // ³å´Ì
+ Rush = 1 << 4, // ¼ÓËÙ
+ WalkOnSlope = 1 << 5 | 1 << 1, // Ð±ÃæÒÆ¶¯
+ WalkOnStairs = 1 << 6 | 1 << 1, // Â¥ÌÝÒÆ¶¯
+ WallRun = 1 << 7, // ·ÉéÜ×ß±Ú
+ Jump = 1 << 8, // ÌøÔ¾
+ WallJump = 1 << 9, // ÈÌÕßÌø
+ Slide = 1 << 10, // »¬²ù
+ Shot = 1 << 11, // Éä»÷
+ Step = 1 << 12, // ½Å²½
+ PullTrick = 1 << 13, //
+ ExtraGravity = 1 << 14, // ¶îÍâÖØÁ¦
+ Crouch = 1 << 15,
}
[SerializeField] private CharacterModule m_Modules;
-
- [SerializeField] private Transform m_Eye;
-
- [SerializeField] private PlayerBody m_Body;
- [SerializeField] private GroundChecker m_GroundChecker;
- [SerializeField] private WallChecker m_WallChecker;
-
- [SerializeField] private MainCameraFollow m_Camera;
-
- #region Modules
-
- [Header("Look Around")]
- [SerializeField] private float m_LookSensitive = 1000f;
- [Range(0.01f, 1)]
- [SerializeField] private float m_LookSmooth = 0.2f;
- private float m_CameraRotation;
- private float m_BodyRotation;
-
- [Header("Move Around")]
- [SerializeField] private float m_MoveSpeed = 100f;
- [Range(0.01f, 1)]
- [SerializeField] private float m_MoveSmooth = 0.2f;
- private Vector3 m_MoveDirection;
- private bool m_ReadyMoveAround = false;
- [SerializeField] private bool m_HeadBobbing = false;
-
- [Header("Move In Air")]
- [SerializeField] private float m_MoveSpeedInAir = 50f;
- [SerializeField] private float m_MoveInAirSmooth = 0.2f;
- private Vector3 m_MoveInAirDirection;
-
- [Header("Jump")]
- [SerializeField] private float m_JumpPower = 300f;
- private bool m_ReadyToJump = false;
-
- [Header("Shot")]
- [SerializeField] private Transform m_Muzzle;
- [SerializeField] private LayerMask m_HittableLayers;
- [SerializeField] private float m_ShotInfiniteDistance = 100f;
-
- [Header("WallJump")]
- [SerializeField] private float m_WallJumpForce = 1;
- [SerializeField] private float m_WallJumpPower = 1000;
- private bool m_ReadyWallJump = false;
-
- [Header("WallRun")]
- [SerializeField] private float m_WallRunSpeed = 1;
-
- [Header("ExtraGravity")]
- [SerializeField] private Vector3 m_ExtraGravity;
-
- [Header("WalkOnStairs")]
- [SerializeField] private Transform m_Lower;
- [SerializeField] private Transform m_Upper;
- [SerializeField] private float m_StepSmooth;
-
- #endregion
-
- public Func<RaycastHit, bool> checkHit;
- public Action<Vector3, Transform> shootTarget;
-
- private Rigidbody m_Rigidbody;
-
- private bool m_LockCursor = false;
- public bool lockCursor
- {
- get
- {
- return m_LockCursor;
- }
- set
- {
- m_LockCursor = value;
- if (value)
- {
- Cursor.lockState = CursorLockMode.Locked;
- }
- else
- {
- Cursor.lockState = CursorLockMode.None;
- }
- }
- }
-
- bool IsModuleActive(CharacterModule module)
- {
- return (module & m_Modules) != 0;
- }
-
- void ActivateModule(CharacterModule module)
- {
- m_Modules |= module;
- }
-
- void LookAround()
- {
- if (!IsModuleActive(CharacterModule.LookAround))
- return;
-
- float mouseX = Input.GetAxis("Mouse X");
- float mouseY = Input.GetAxis("Mouse Y");
-
- //mouseX = -0.1f; // test jittery
-
- m_CameraRotation -= mouseY * Time.deltaTime * m_LookSensitive;
- m_CameraRotation = Mathf.Clamp(m_CameraRotation, -90, 90);
- Quaternion rot = Quaternion.Euler(m_CameraRotation, 0, 0);
- m_Eye.localRotation = Quaternion.Slerp(m_Eye.localRotation, rot, m_LookSmooth );
-
- m_BodyRotation += mouseX * Time.deltaTime * m_LookSensitive;
- rot = Quaternion.Euler(0, m_BodyRotation, 0);
- transform.localRotation = Quaternion.Slerp(transform.localRotation, rot, m_LookSmooth);
- }
-
- void MoveAroundUpdate()
- {
- if (!IsModuleActive(CharacterModule.MoveAround))
- return;
-
- if (!m_GroundChecker.isOnGround)
- return;
-
- float moveX = Input.GetAxisRaw("Horizontal");
+
+ [SerializeField] private Transform m_Eye;
+
+ [SerializeField] private PlayerBody m_Body;
+ [SerializeField] private GroundChecker m_GroundChecker;
+ [SerializeField] private WallChecker m_WallChecker;
+
+ [SerializeField] private MainCameraFollow m_Camera;
+
+ #region Modules
+
+ [Header("Look Around")]
+ [SerializeField] private float m_LookSensitive = 1000f;
+ [Range(0.01f, 1)]
+ [SerializeField] private float m_LookSmooth = 0.2f;
+ private float m_CameraRotation;
+ private float m_BodyRotation;
+
+ [Header("Move Around")]
+ [SerializeField] private float m_MoveSpeed = 100f;
+ [Range(0.01f, 1)]
+ [SerializeField] private float m_MoveSmooth = 0.2f;
+ private Vector3 m_MoveDirection;
+ private bool m_ReadyMoveAround = false;
+ [SerializeField] private bool m_HeadBobbing = false;
+
+ [Header("Move In Air")]
+ [SerializeField] private float m_MoveSpeedInAir = 50f;
+ [SerializeField] private float m_MoveInAirSmooth = 0.2f;
+ private Vector3 m_MoveInAirDirection;
+
+ [Header("Jump")]
+ [SerializeField] private float m_JumpPower = 300f;
+ private bool m_ReadyToJump = false;
+
+ [Header("Shot")]
+ [SerializeField] private Transform m_Muzzle;
+ [SerializeField] private LayerMask m_HittableLayers;
+ [SerializeField] private float m_ShotInfiniteDistance = 100f;
+
+ [Header("WallJump")]
+ [SerializeField] private float m_WallJumpForce = 1;
+ [SerializeField] private float m_WallJumpPower = 1000;
+ private bool m_ReadyWallJump = false;
+
+ [Header("WallRun")]
+ [SerializeField] private float m_WallRunSpeed = 1;
+
+ [Header("ExtraGravity")]
+ [SerializeField] private Vector3 m_ExtraGravity;
+
+ [Header("WalkOnStairs")]
+ [SerializeField] private Transform m_Lower;
+ [SerializeField] private Transform m_Upper;
+ [SerializeField] private float m_StepSmooth;
+
+ #endregion
+
+ public Func<RaycastHit, bool> checkHit;
+ public Action<Vector3, Transform> shootTarget;
+
+ private Rigidbody m_Rigidbody;
+
+ private bool m_LockCursor = false;
+ public bool lockCursor
+ {
+ get
+ {
+ return m_LockCursor;
+ }
+ set
+ {
+ m_LockCursor = value;
+ if (value)
+ {
+ Cursor.lockState = CursorLockMode.Locked;
+ }
+ else
+ {
+ Cursor.lockState = CursorLockMode.None;
+ }
+ }
+ }
+
+ bool IsModuleActive(CharacterModule module)
+ {
+ return (module & m_Modules) != 0;
+ }
+
+ void ActivateModule(CharacterModule module)
+ {
+ m_Modules |= module;
+ }
+
+ void LookAround()
+ {
+ if (!IsModuleActive(CharacterModule.LookAround))
+ return;
+
+ float mouseX = Input.GetAxis("Mouse X");
+ float mouseY = Input.GetAxis("Mouse Y");
+
+ //mouseX = -0.1f; // test jittery
+
+ m_CameraRotation -= mouseY * Time.deltaTime * m_LookSensitive;
+ m_CameraRotation = Mathf.Clamp(m_CameraRotation, -90, 90);
+ Quaternion rot = Quaternion.Euler(m_CameraRotation, 0, 0);
+ m_Eye.localRotation = Quaternion.Slerp(m_Eye.localRotation, rot, m_LookSmooth );
+
+ m_BodyRotation += mouseX * Time.deltaTime * m_LookSensitive;
+ rot = Quaternion.Euler(0, m_BodyRotation, 0);
+ transform.localRotation = Quaternion.Slerp(transform.localRotation, rot, m_LookSmooth);
+ }
+
+ void MoveAroundUpdate()
+ {
+ if (!IsModuleActive(CharacterModule.MoveAround))
+ return;
+
+ if (!m_GroundChecker.isOnGround)
+ return;
+
+ float moveX = Input.GetAxisRaw("Horizontal");
+ float moveZ = Input.GetAxisRaw("Vertical");
+
+ Vector3 right = transform.right;
+ Vector3 forward = transform.forward;
+
+ Vector3 dir = right * moveX + forward * moveZ;
+
+ if (IsModuleActive(CharacterModule.WalkOnSlope))
+ {
+ if (m_GroundChecker.isOnGround)
+ {
+ RaycastHit hitInfo;
+ if (Physics.Raycast(m_GroundChecker.foot.position, Vector3.down, out hitInfo))
+ {
+ Vector3 normal = hitInfo.normal;
+ dir = Vector3.ProjectOnPlane(dir, normal);
+ GizmosHandle.Instance.DoGizmos(() =>
+ {
+ Gizmos.DrawLine(hitInfo.point + new Vector3(0, 0.1f, 0), hitInfo.point + dir);
+ });
+ }
+ }
+ }
+
+ dir = dir.normalized;
+
+ m_MoveDirection = Vector3.Slerp(m_MoveDirection, dir, 1f);
+ }
+
+ void MoveAroundFixedUpdate()
+ {
+ if (!IsModuleActive(CharacterModule.MoveAround))
+ return;
+
+ if (!m_GroundChecker.isOnGround)
+ return;
+
+ float vy = m_Rigidbody.velocity.y;
+ Vector3 velocity = new Vector3(m_MoveDirection.x * Time.deltaTime * m_MoveSpeed, vy, m_MoveDirection.z * Time.deltaTime * m_MoveSpeed);
+
+ Vector3 rigidVel = m_Rigidbody.velocity;
+
+ // ¶ÔËÙ¶ÈSlerp±È½ÏΣÏÕ
+ //if (Vector3.Angle(rigidVel, velocity) > 90)
+ //{
+ // m_Rigidbody.velocity = Vector3.Lerp(rigidVel, velocity, m_MoveSmooth);
+ //}
+ //else
+ //{
+ // m_Rigidbody.velocity = Vector3.Slerp(rigidVel, velocity, m_MoveSmooth);
+ //}
+
+ m_Rigidbody.velocity = Vector3.Lerp(rigidVel, velocity, m_MoveSmooth);
+ }
+
+ void MoveInAirUpdate()
+ {
+ if (!IsModuleActive(CharacterModule.MoveInAir))
+ return;
+
+ if (m_GroundChecker.isOnGround)
+ return;
+
+ float moveX = Input.GetAxisRaw("Horizontal");
float moveZ = Input.GetAxisRaw("Vertical");
-
- Vector3 right = transform.right;
- Vector3 forward = transform.forward;
-
- Vector3 dir = right * moveX + forward * moveZ;
-
- if (IsModuleActive(CharacterModule.WalkOnSlope))
- {
- if (m_GroundChecker.isOnGround)
- {
- RaycastHit hitInfo;
- if (Physics.Raycast(m_GroundChecker.foot.position, Vector3.down, out hitInfo))
- {
- Vector3 normal = hitInfo.normal;
- dir = Vector3.ProjectOnPlane(dir, normal);
- GizmosHandle.Instance.DoGizmos(() =>
- {
- Gizmos.DrawLine(hitInfo.point + new Vector3(0, 0.1f, 0), hitInfo.point + dir);
- });
- }
- }
- }
-
- dir = dir.normalized;
-
- m_MoveDirection = Vector3.Slerp(m_MoveDirection, dir, 1f);
- }
-
- void MoveAroundFixedUpdate()
- {
- if (!IsModuleActive(CharacterModule.MoveAround))
- return;
-
- if (!m_GroundChecker.isOnGround)
- return;
-
- float vy = m_Rigidbody.velocity.y;
- Vector3 velocity = new Vector3(m_MoveDirection.x * Time.deltaTime * m_MoveSpeed, vy, m_MoveDirection.z * Time.deltaTime * m_MoveSpeed);
-
- Vector3 rigidVel = m_Rigidbody.velocity;
-
- // ¶ÔËÙ¶ÈSlerp±È½ÏΣÏÕ
- //if (Vector3.Angle(rigidVel, velocity) > 90)
- //{
- // m_Rigidbody.velocity = Vector3.Lerp(rigidVel, velocity, m_MoveSmooth);
- //}
- //else
- //{
- // m_Rigidbody.velocity = Vector3.Slerp(rigidVel, velocity, m_MoveSmooth);
- //}
-
- m_Rigidbody.velocity = Vector3.Lerp(rigidVel, velocity, m_MoveSmooth);
- }
-
- void MoveInAirUpdate()
- {
- if (!IsModuleActive(CharacterModule.MoveInAir))
- return;
-
- if (m_GroundChecker.isOnGround)
- return;
-
- float moveX = Input.GetAxisRaw("Horizontal");
- float moveZ = Input.GetAxisRaw("Vertical");
-
- m_MoveInAirDirection = Vector3.ClampMagnitude(transform.right * moveX + transform.forward * moveZ, 1);
- }
-
- void MoveInAirFixedUpdate()
- {
- if (!IsModuleActive(CharacterModule.MoveInAir))
- return;
-
- if (m_GroundChecker.isOnGround)
- return;
-
- if (m_MoveInAirDirection.magnitude == 0f)
- return;
-
- float vy = m_Rigidbody.velocity.y;
- Vector3 velocity = new Vector3(m_MoveInAirDirection.x * Time.deltaTime * m_MoveSpeedInAir, vy, m_MoveInAirDirection.z * Time.deltaTime * m_MoveSpeedInAir);
-
- m_Rigidbody.velocity = Vector3.Lerp(m_Rigidbody.velocity, velocity, m_MoveInAirSmooth);
- }
-
- void Jump()
- {
- if (!IsModuleActive(CharacterModule.Jump))
- return;
-
- if (!m_GroundChecker.isOnGround)
- return;
-
- if (Input.GetButtonDown("Jump"))
- {
- m_ReadyToJump = true;
- }
- }
-
- void JumpFixedUpdate()
- {
- if(m_ReadyToJump)
- {
- m_ReadyToJump = false;
- m_Rigidbody.AddForce(Vector3.up * m_JumpPower, ForceMode.Acceleration);
- }
- }
-
- void Dodge()
- {
- if (!IsModuleActive(CharacterModule.Dodge))
- return;
-
- if (Input.GetKeyDown(KeyCode.LeftShift))
- {
-
- }
- }
-
- void DodgeFixed()
- {
-
- }
-
- void Shot()
- {
- if (!IsModuleActive(CharacterModule.Shot))
- return;
-
- if (Input.GetButtonDown("Fire1"))
- {
- Vector3 hitPoint = GetHitPoint();
- if (shootTarget != null)
- shootTarget(hitPoint, m_Muzzle);
- }
- }
-
- Vector3 GetHitPoint()
- {
- RaycastHit[] hits = Physics.RaycastAll(m_Eye.position, m_Eye.forward, m_HittableLayers, (int)QueryTriggerInteraction.Ignore);
- if (hits.Length < 1)
- {
- return m_Eye.position + m_Eye.forward * m_ShotInfiniteDistance;
- }
- else
- {
- for (int i = 0; i < hits.Length; ++i)
- {
- if (checkHit != null && checkHit(hits[i]))
- {
- return hits[i].point;
- }
- }
- }
- return hits[0].point;
- }
-
- void WallJump()
- {
- if (!IsModuleActive(CharacterModule.WallJump))
- return;
-
- if (!m_WallChecker.IsOnWall)
- return;
-
- if (m_GroundChecker.isOnGround)
- return;
-
- if (Input.GetButtonDown("Jump"))
- {
- m_ReadyWallJump = true;
- }
- }
-
- void WallJumpFixedUpdate()
- {
- if(m_ReadyWallJump)
- {
- m_ReadyWallJump = false;
- Vector3 poc;
- if (m_WallChecker.GetCollisionPoint(out poc))
- {
- Vector3 dir = Vector3.ClampMagnitude(transform.position - poc, 1f);
- Vector3 wallJumpDirection = new Vector3(dir.x, 1, dir.z);
- m_Rigidbody.velocity = Vector3.zero;
- m_Rigidbody.AddForce(wallJumpDirection * m_WallJumpPower);
- }
- }
- }
-
- void WallRun()
- {
- if (!IsModuleActive(CharacterModule.WallRun))
- return;
-
- if (!m_WallChecker.IsOnWall)
- return;
-
- }
-
- void PullTrick()
- {
-
- }
-
- void ExtraGravity()
- {
- if (!IsModuleActive(CharacterModule.ExtraGravity))
- return;
-
- m_Rigidbody.AddForce(m_ExtraGravity, ForceMode.Acceleration);
- }
-
- void WalkOnStairs()
- {
- //int layermask = ~(1 << LayerMask.NameToLayer("Player"));
-
- //RaycastHit hitLower;
- //if (Physics.Raycast(m_Lower.position, transform.TransformDirection(Vector3.forward), out hitLower, 0.6f, layermask))
- //{
- // RaycastHit hitUpper;
- // if (!Physics.Raycast(m_Upper.position, transform.TransformDirection(Vector3.forward), out hitUpper, 0.7f, layermask))
- // {
- // m_Rigidbody.position += new Vector3(0f, m_StepSmooth * Time.deltaTime, 0f);
- // }
- //}
- }
-
-
- void SetCamera ()
- {
- m_Camera.SetCameraPositionAndRotation(m_Eye);
- }
-
- private void Awake()
- {
- m_Rigidbody = GetComponent<Rigidbody>();
- }
-
- private void Start()
- {
- m_CameraRotation = 0;
-
- lockCursor = true;
- }
-
- private void Update()
- {
- LookAround();
- MoveAroundUpdate();
- MoveInAirUpdate();
- Jump();
- Dodge();
- Shot();
- WallJump();
- PullTrick();
-
- SetCamera();
- }
-
- private void FixedUpdate()
- {
- WalkOnStairs();
- MoveAroundFixedUpdate();
- MoveInAirFixedUpdate();
- DodgeFixed();
- ExtraGravity();
- JumpFixedUpdate();
- WallJumpFixedUpdate();
- }
-
- }
-}
+
+ m_MoveInAirDirection = Vector3.ClampMagnitude(transform.right * moveX + transform.forward * moveZ, 1);
+ }
+
+ void MoveInAirFixedUpdate()
+ {
+ if (!IsModuleActive(CharacterModule.MoveInAir))
+ return;
+
+ if (m_GroundChecker.isOnGround)
+ return;
+
+ if (m_MoveInAirDirection.magnitude == 0f)
+ return;
+
+ float vy = m_Rigidbody.velocity.y;
+ Vector3 velocity = new Vector3(m_MoveInAirDirection.x * Time.deltaTime * m_MoveSpeedInAir, vy, m_MoveInAirDirection.z * Time.deltaTime * m_MoveSpeedInAir);
+
+ m_Rigidbody.velocity = Vector3.Lerp(m_Rigidbody.velocity, velocity, m_MoveInAirSmooth);
+ }
+
+ void Jump()
+ {
+ if (!IsModuleActive(CharacterModule.Jump))
+ return;
+
+ if (!m_GroundChecker.isOnGround)
+ return;
+
+ if (Input.GetButtonDown("Jump"))
+ {
+ m_ReadyToJump = true;
+ }
+ }
+
+ void JumpFixedUpdate()
+ {
+ if(m_ReadyToJump)
+ {
+ m_ReadyToJump = false;
+ m_Rigidbody.AddForce(Vector3.up * m_JumpPower, ForceMode.Acceleration);
+ }
+ }
+
+ void Dodge()
+ {
+ if (!IsModuleActive(CharacterModule.Dodge))
+ return;
+
+ if (Input.GetKeyDown(KeyCode.LeftShift))
+ {
+
+ }
+ }
+
+ void DodgeFixed()
+ {
+
+ }
+
+ void Shot()
+ {
+ if (!IsModuleActive(CharacterModule.Shot))
+ return;
+
+ if (Input.GetButtonDown("Fire1"))
+ {
+ Vector3 hitPoint = GetHitPoint();
+ if (shootTarget != null)
+ shootTarget(hitPoint, m_Muzzle);
+ }
+ }
+
+ Vector3 GetHitPoint()
+ {
+ RaycastHit[] hits = Physics.RaycastAll(m_Eye.position, m_Eye.forward, m_HittableLayers, (int)QueryTriggerInteraction.Ignore);
+ if (hits.Length < 1)
+ {
+ return m_Eye.position + m_Eye.forward * m_ShotInfiniteDistance;
+ }
+ else
+ {
+ for (int i = 0; i < hits.Length; ++i)
+ {
+ if (checkHit != null && checkHit(hits[i]))
+ {
+ return hits[i].point;
+ }
+ }
+ }
+ return hits[0].point;
+ }
+
+ void WallJump()
+ {
+ if (!IsModuleActive(CharacterModule.WallJump))
+ return;
+
+ if (!m_WallChecker.IsOnWall)
+ return;
+
+ if (m_GroundChecker.isOnGround)
+ return;
+
+ if (Input.GetButtonDown("Jump"))
+ {
+ m_ReadyWallJump = true;
+ }
+ }
+
+ void WallJumpFixedUpdate()
+ {
+ if(m_ReadyWallJump)
+ {
+ m_ReadyWallJump = false;
+ Vector3 poc;
+ if (m_WallChecker.GetCollisionPoint(out poc))
+ {
+ Vector3 dir = Vector3.ClampMagnitude(transform.position - poc, 1f);
+ Vector3 wallJumpDirection = new Vector3(dir.x, 1, dir.z);
+ m_Rigidbody.velocity = Vector3.zero;
+ m_Rigidbody.AddForce(wallJumpDirection * m_WallJumpPower);
+ }
+ }
+ }
+
+ void WallRun()
+ {
+ if (!IsModuleActive(CharacterModule.WallRun))
+ return;
+
+ if (!m_WallChecker.IsOnWall)
+ return;
+
+ }
+
+ void PullTrick()
+ {
+
+ }
+
+ void ExtraGravity()
+ {
+ if (!IsModuleActive(CharacterModule.ExtraGravity))
+ return;
+
+ m_Rigidbody.AddForce(m_ExtraGravity, ForceMode.Acceleration);
+ }
+
+ void WalkOnStairs()
+ {
+ //int layermask = ~(1 << LayerMask.NameToLayer("Player"));
+
+ //RaycastHit hitLower;
+ //if (Physics.Raycast(m_Lower.position, transform.TransformDirection(Vector3.forward), out hitLower, 0.6f, layermask))
+ //{
+ // RaycastHit hitUpper;
+ // if (!Physics.Raycast(m_Upper.position, transform.TransformDirection(Vector3.forward), out hitUpper, 0.7f, layermask))
+ // {
+ // m_Rigidbody.position += new Vector3(0f, m_StepSmooth * Time.deltaTime, 0f);
+ // }
+ //}
+ }
+
+
+ void SetCamera ()
+ {
+ m_Camera.SetCameraPositionAndRotation(m_Eye);
+ }
+
+ private void Awake()
+ {
+ m_Rigidbody = GetComponent<Rigidbody>();
+ }
+
+ private void Start()
+ {
+ m_CameraRotation = 0;
+
+ lockCursor = true;
+ }
+
+ private void Update()
+ {
+ LookAround();
+ MoveAroundUpdate();
+ MoveInAirUpdate();
+ Jump();
+ Dodge();
+ Shot();
+ WallJump();
+ PullTrick();
+
+ SetCamera();
+ }
+
+ private void FixedUpdate()
+ {
+ WalkOnStairs();
+ MoveAroundFixedUpdate();
+ MoveInAirFixedUpdate();
+ DodgeFixed();
+ ExtraGravity();
+ JumpFixedUpdate();
+ WallJumpFixedUpdate();
+ }
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/FPSCharacterController.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/FPSCharacterController.cs.meta
index 555d7fe..555d7fe 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/FPSCharacterController.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/FPSCharacterController.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/GroundChecker.cs b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/GroundChecker.cs
index 5e27a02..279786d 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/GroundChecker.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/GroundChecker.cs
@@ -1,48 +1,48 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-namespace JamUtils
-{
-
- public class GroundChecker : MonoBehaviour
- {
- [SerializeField] private Transform m_Foot;
-
- private List<Collider> m_Colliders = new List<Collider>();
-
- public Transform foot
- {
- get
- {
- return m_Foot;
- }
- }
-
- public bool isOnGround
- {
- get
- {
- return m_Colliders.Count != 0;
- }
- }
-
- private void OnTriggerEnter(Collider other)
- {
- if (!m_Colliders.Contains(other))
- m_Colliders.Add(other);
- }
-
- private void OnTriggerExit(Collider other)
- {
- if (m_Colliders.Contains(other))
- m_Colliders.Remove(other);
- }
-
- private void OnTriggerStay(Collider other)
- {
- }
-
- }
-
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+namespace JamUtils
+{
+
+ public class GroundChecker : MonoBehaviour
+ {
+ [SerializeField] private Transform m_Foot;
+
+ private List<Collider> m_Colliders = new List<Collider>();
+
+ public Transform foot
+ {
+ get
+ {
+ return m_Foot;
+ }
+ }
+
+ public bool isOnGround
+ {
+ get
+ {
+ return m_Colliders.Count != 0;
+ }
+ }
+
+ private void OnTriggerEnter(Collider other)
+ {
+ if (!m_Colliders.Contains(other))
+ m_Colliders.Add(other);
+ }
+
+ private void OnTriggerExit(Collider other)
+ {
+ if (m_Colliders.Contains(other))
+ m_Colliders.Remove(other);
+ }
+
+ private void OnTriggerStay(Collider other)
+ {
+ }
+
+ }
+
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/GroundChecker.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/GroundChecker.cs.meta
index 6d7d500..6d7d500 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/GroundChecker.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/GroundChecker.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/MainCameraFollow.cs b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/MainCameraFollow.cs
index e310715..4f8ebab 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/MainCameraFollow.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/MainCameraFollow.cs
@@ -1,20 +1,20 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-namespace JamUtils
-{
-
- [RequireComponent(typeof(Camera))]
- public class MainCameraFollow : MonoBehaviour
- {
-
- public void SetCameraPositionAndRotation(Transform reference)
- {
- transform.position = reference.position;
- transform.rotation = reference.rotation;
- }
-
- }
-
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+namespace JamUtils
+{
+
+ [RequireComponent(typeof(Camera))]
+ public class MainCameraFollow : MonoBehaviour
+ {
+
+ public void SetCameraPositionAndRotation(Transform reference)
+ {
+ transform.position = reference.position;
+ transform.rotation = reference.rotation;
+ }
+
+ }
+
} \ No newline at end of file
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/MainCameraFollow.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/MainCameraFollow.cs.meta
index 890d789..890d789 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/MainCameraFollow.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/MainCameraFollow.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/Player.cs b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/Player.cs
index 83454d1..0e86a96 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/Player.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/Player.cs
@@ -1,39 +1,39 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-namespace JamUtils
-{
-
- public class Player : MonoBehaviour
- {
- [SerializeField] private GameObject m_Bullet;
-
- private FPSCharacterController m_Controller;
-
- private void Awake()
- {
- m_Controller = GetComponent<FPSCharacterController>();
- }
-
- private void Start()
- {
- m_Controller.shootTarget = ShootTarget;
- m_Controller.checkHit = CheckHit;
- }
-
- bool CheckHit(RaycastHit hit)
- {
- return true;
- }
-
- void ShootTarget(Vector3 target, Transform muzzle)
- {
- GameObject go = GameObject.Instantiate(m_Bullet);
- go.transform.position = muzzle.position;
- go.GetComponent<Rigidbody>().velocity = (target - muzzle.position).normalized * 100;
- }
-
- }
-
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+namespace JamUtils
+{
+
+ public class Player : MonoBehaviour
+ {
+ [SerializeField] private GameObject m_Bullet;
+
+ private FPSCharacterController m_Controller;
+
+ private void Awake()
+ {
+ m_Controller = GetComponent<FPSCharacterController>();
+ }
+
+ private void Start()
+ {
+ m_Controller.shootTarget = ShootTarget;
+ m_Controller.checkHit = CheckHit;
+ }
+
+ bool CheckHit(RaycastHit hit)
+ {
+ return true;
+ }
+
+ void ShootTarget(Vector3 target, Transform muzzle)
+ {
+ GameObject go = GameObject.Instantiate(m_Bullet);
+ go.transform.position = muzzle.position;
+ go.GetComponent<Rigidbody>().velocity = (target - muzzle.position).normalized * 100;
+ }
+
+ }
+
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/Player.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/Player.cs.meta
index d39ac17..d39ac17 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/Player.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/Player.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/PlayerBody.cs b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/PlayerBody.cs
index 709b756..a3dadf3 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/PlayerBody.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/PlayerBody.cs
@@ -1,37 +1,37 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerBody : MonoBehaviour
-{
- private CapsuleCollider m_CapsuleCollider;
-
- public CapsuleCollider capsuleCollider
- {
- get
- {
- return m_CapsuleCollider;
- }
- }
-
- private void Awake()
- {
- m_CapsuleCollider = GetComponent<CapsuleCollider>();
- }
-
- private void OnCollisionEnter(Collision collision)
- {
-
- }
-
- private void OnCollisionStay(Collision collision)
- {
-
- }
-
- private void OnCollisionExit(Collision collision)
- {
-
- }
-
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerBody : MonoBehaviour
+{
+ private CapsuleCollider m_CapsuleCollider;
+
+ public CapsuleCollider capsuleCollider
+ {
+ get
+ {
+ return m_CapsuleCollider;
+ }
+ }
+
+ private void Awake()
+ {
+ m_CapsuleCollider = GetComponent<CapsuleCollider>();
+ }
+
+ private void OnCollisionEnter(Collision collision)
+ {
+
+ }
+
+ private void OnCollisionStay(Collision collision)
+ {
+
+ }
+
+ private void OnCollisionExit(Collision collision)
+ {
+
+ }
+
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/PlayerBody.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/PlayerBody.cs.meta
index 218de82..218de82 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/PlayerBody.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/PlayerBody.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/StairChecker.cs b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/StairChecker.cs
index d5b881e..fe00366 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/StairChecker.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/StairChecker.cs
@@ -1,19 +1,19 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class StairChecker : MonoBehaviour
-{
- public Transform upper;
- public Transform lower;
-
- void Start()
- {
-
- }
-
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class StairChecker : MonoBehaviour
+{
+ public Transform upper;
+ public Transform lower;
+
+ void Start()
+ {
+
+ }
+
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/StairChecker.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/StairChecker.cs.meta
index bf23780..bf23780 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/StairChecker.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/StairChecker.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/WallChecker.cs b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/WallChecker.cs
index 423dcf6..a437113 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/WallChecker.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/WallChecker.cs
@@ -1,74 +1,74 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-namespace JamUtils
-{
-
-
- public class WallChecker : MonoBehaviour
- {
-
- private bool m_IsOnWall;
- public bool IsOnWall
- {
- get
- {
- return m_IsOnWall;
- }
- }
-
- private List<Collider> m_Colliders = new List<Collider>();
-
- private void Update()
- {
- if (m_IsOnWall && m_Colliders.Count == 0)
- {
- m_IsOnWall = false;
- }
- }
-
- public bool GetCollisionPoint(out Vector3 point)
- {
- bool result = false;
- point = Vector3.zero;
- if (m_Colliders.Count > 0)
- {
- float dist = 100f;
- for (int i = 0; i < m_Colliders.Count; ++i)
- {
- Collider col = m_Colliders[i];
- Vector3 p = ColliderUtility.FindClosestPoint(col, transform.position);
- if (Vector3.Distance(p, transform.position) <= dist)
- {
- dist = Vector3.Distance(p, transform.position);
- point = p;
- result = true;
- }
- }
- }
- return result;
- }
-
- private void OnTriggerEnter(Collider other)
- {
- m_IsOnWall = true;
-
- m_Colliders.Add(other);
- }
-
- private void OnTriggerStay(Collider other)
- {
- }
-
- private void OnTriggerExit(Collider other)
- {
- if (m_Colliders.Contains(other))
- {
- m_Colliders.Remove(other);
- }
- }
-
- }
-
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+namespace JamUtils
+{
+
+
+ public class WallChecker : MonoBehaviour
+ {
+
+ private bool m_IsOnWall;
+ public bool IsOnWall
+ {
+ get
+ {
+ return m_IsOnWall;
+ }
+ }
+
+ private List<Collider> m_Colliders = new List<Collider>();
+
+ private void Update()
+ {
+ if (m_IsOnWall && m_Colliders.Count == 0)
+ {
+ m_IsOnWall = false;
+ }
+ }
+
+ public bool GetCollisionPoint(out Vector3 point)
+ {
+ bool result = false;
+ point = Vector3.zero;
+ if (m_Colliders.Count > 0)
+ {
+ float dist = 100f;
+ for (int i = 0; i < m_Colliders.Count; ++i)
+ {
+ Collider col = m_Colliders[i];
+ Vector3 p = ColliderUtility.FindClosestPoint(col, transform.position);
+ if (Vector3.Distance(p, transform.position) <= dist)
+ {
+ dist = Vector3.Distance(p, transform.position);
+ point = p;
+ result = true;
+ }
+ }
+ }
+ return result;
+ }
+
+ private void OnTriggerEnter(Collider other)
+ {
+ m_IsOnWall = true;
+
+ m_Colliders.Add(other);
+ }
+
+ private void OnTriggerStay(Collider other)
+ {
+ }
+
+ private void OnTriggerExit(Collider other)
+ {
+ if (m_Colliders.Contains(other))
+ {
+ m_Colliders.Remove(other);
+ }
+ }
+
+ }
+
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/WallChecker.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/WallChecker.cs.meta
index 2041b9f..2041b9f 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Scripts/WallChecker.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonCharacterController/Rigidbody/MoveByVelocity/Scripts/WallChecker.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Demo.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Demo.meta
index 4103a62..4103a62 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Demo.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Demo.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Prefabs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Prefabs.meta
index 7d23f88..7d23f88 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Prefabs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Prefabs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts.meta
index ff40773..ff40773 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/MovementBase.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/MovementBase.cs
index 49de0e8..fd19c39 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/MovementBase.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/MovementBase.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class MovementBase : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class MovementBase : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/MovementBase.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/MovementBase.cs.meta
index 67dd938..67dd938 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/MovementBase.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/MovementBase.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerDodge.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerDodge.cs
index 3348f33..93f1817 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerDodge.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerDodge.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerDodge : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerDodge : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerDodge.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerDodge.cs.meta
index 9ead883..9ead883 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerDodge.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerDodge.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerDoubleJump.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerDoubleJump.cs
index c1e774c..8f4ce6c 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerDoubleJump.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerDoubleJump.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerDoubleJump : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerDoubleJump : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerDoubleJump.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerDoubleJump.cs.meta
index 52fde20..52fde20 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerDoubleJump.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerDoubleJump.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerJump.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerJump.cs
index e3bcc55..d928dc7 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerJump.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerJump.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerJump : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerJump : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerJump.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerJump.cs.meta
index 27875fa..27875fa 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerJump.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerJump.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerLookAround.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerLookAround.cs
index 6740ce1..33469c4 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerLookAround.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerLookAround.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerLookAround : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerLookAround : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerLookAround.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerLookAround.cs.meta
index ed0e65f..ed0e65f 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerLookAround.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerLookAround.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerMove.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerMove.cs
index e9b0afa..bada04b 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerMove.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerMove.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerMove : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerMove : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerMove.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerMove.cs.meta
index cb395d5..cb395d5 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerMove.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerMove.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerMoveInAir.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerMoveInAir.cs
index 2268803..ea33ecc 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerMoveInAir.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerMoveInAir.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerMoveInAir : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerMoveInAir : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerMoveInAir.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerMoveInAir.cs.meta
index 113ef33..113ef33 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerMoveInAir.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerMoveInAir.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerRush.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerRush.cs
index 085b021..bd6b670 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerRush.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerRush.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerRush : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerRush : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerRush.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerRush.cs.meta
index 0e82a5b..0e82a5b 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerRush.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerRush.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerShot.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerShot.cs
index a42c249..4d2d9d5 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerShot.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerShot.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerShot : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerShot : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerShot.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerShot.cs.meta
index a3a78ab..a3a78ab 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerShot.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerShot.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerSlide.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerSlide.cs
index 18d53fa..71cb973 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerSlide.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerSlide.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerSlide : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerSlide : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerSlide.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerSlide.cs.meta
index 67e0b96..67e0b96 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerSlide.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerSlide.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWalkOnSlope.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWalkOnSlope.cs
index 9619eeb..2b65aa4 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWalkOnSlope.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWalkOnSlope.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerWalkOnSlope : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerWalkOnSlope : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWalkOnSlope.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWalkOnSlope.cs.meta
index 99cdf55..99cdf55 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWalkOnSlope.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWalkOnSlope.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWalkOnStairs.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWalkOnStairs.cs
index e58f9eb..86ee098 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWalkOnStairs.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWalkOnStairs.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerWalkOnStairs : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerWalkOnStairs : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWalkOnStairs.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWalkOnStairs.cs.meta
index 0f4e3a6..0f4e3a6 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWalkOnStairs.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWalkOnStairs.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWallJump.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWallJump.cs
index 08e4c7b..f2162ee 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWallJump.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWallJump.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerWallJump : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerWallJump : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWallJump.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWallJump.cs.meta
index 6cbe3a8..6cbe3a8 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWallJump.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWallJump.cs.meta
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWallRun.cs b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWallRun.cs
index aab0d9b..4dc511b 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWallRun.cs
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWallRun.cs
@@ -1,18 +1,18 @@
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class PlayerWallRun : MonoBehaviour
-{
- // Start is called before the first frame update
- void Start()
- {
-
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-}
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class PlayerWallRun : MonoBehaviour
+{
+ // Start is called before the first frame update
+ void Start()
+ {
+
+ }
+
+ // Update is called once per frame
+ void Update()
+ {
+
+ }
+}
diff --git a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWallRun.cs.meta b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWallRun.cs.meta
index 93fe220..93fe220 100644
--- a/JamHelper/Assets/JamUtils/FirstPersonController/Scripts/PlayerWallRun.cs.meta
+++ b/JamHelper/Assets/JamUtils/FirstPersonControllerAdvance/Scripts/PlayerWallRun.cs.meta