remove obstacle
This commit is contained in:
@@ -27,7 +27,7 @@ namespace OnlyScove.Scripts.GameSetup
|
||||
public void ApplyAutoSetup()
|
||||
{
|
||||
CharacterController controller = GetComponent<CharacterController>();
|
||||
PlayerStateMachine stateMachine = GetComponent<PlayerStateMachine>();
|
||||
// PlayerStateMachine stateMachine = GetComponent<PlayerStateMachine>();
|
||||
Animator animator = GetComponentInChildren<Animator>();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
@@ -97,19 +97,19 @@ namespace OnlyScove.Scripts.GameSetup
|
||||
|
||||
// 6. GROUND CHECK (STATE MACHINE)
|
||||
sb.AppendLine("<color=#757575>------------------------------------------------------------</color>");
|
||||
if (stateMachine != null)
|
||||
{
|
||||
float groundCheckRadius = finalRadius * 0.6f;
|
||||
float groundCheckOffsetY = finalHeight / 24f;
|
||||
Vector3 groundCheckOffset = new Vector3(0, groundCheckOffsetY, zCenterOffset);
|
||||
|
||||
stateMachine.SetGroundCheck(groundCheckRadius, groundCheckOffset);
|
||||
|
||||
sb.AppendLine("<b>7. GROUND CHECK SETUP:</b>");
|
||||
sb.AppendLine(string.Format(" - Radius: {0:F3}m (Radius) [x 0.60] ➔ <color=#81C784>{1:F3}m</color>", finalRadius, groundCheckRadius));
|
||||
sb.AppendLine(string.Format(" - Offset Y: {0:F3}m (Height) [/ 24] ➔ <color=#81C784>{1:F3}m</color>", finalHeight, groundCheckOffsetY));
|
||||
sb.AppendLine(string.Format(" - Offset Z: [Sync Center Z] ➔ <color=#81C784>{0:F3}m</color>", zCenterOffset));
|
||||
}
|
||||
// if (stateMachine != null)
|
||||
// {
|
||||
// float groundCheckRadius = finalRadius * 0.6f;
|
||||
// float groundCheckOffsetY = finalHeight / 24f;
|
||||
// Vector3 groundCheckOffset = new Vector3(0, groundCheckOffsetY, zCenterOffset);
|
||||
//
|
||||
// stateMachine.SetGroundCheck(groundCheckRadius, groundCheckOffset);
|
||||
//
|
||||
// sb.AppendLine("<b>7. GROUND CHECK SETUP:</b>");
|
||||
// sb.AppendLine(string.Format(" - Radius: {0:F3}m (Radius) [x 0.60] ➔ <color=#81C784>{1:F3}m</color>", finalRadius, groundCheckRadius));
|
||||
// sb.AppendLine(string.Format(" - Offset Y: {0:F3}m (Height) [/ 24] ➔ <color=#81C784>{1:F3}m</color>", finalHeight, groundCheckOffsetY));
|
||||
// sb.AppendLine(string.Format(" - Offset Z: [Sync Center Z] ➔ <color=#81C784>{0:F3}m</color>", zCenterOffset));
|
||||
// }
|
||||
|
||||
sb.AppendLine("<color=#757575>------------------------------------------------------------</color>");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user