Skip to content

Commit

Permalink
Remove AggressiveInline
Browse files Browse the repository at this point in the history
  • Loading branch information
kochounoyume committed Jul 3, 2024
1 parent b34b9a6 commit cdb7baa
Showing 1 changed file with 4 additions and 25 deletions.
29 changes: 4 additions & 25 deletions Packages/PlayerControl/Runtime/PlayerController.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using Unity.TinyCharacterController.Check;
using Unity.TinyCharacterController.Control;
using Unity.TinyCharacterController.Interfaces.Core;
Expand Down Expand Up @@ -61,43 +60,23 @@ public class PlayerController : MonoBehaviour

protected ref readonly AnimHashConstants Constants => ref constants;

protected bool IsDoubleJump
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => JumpControl.AerialJumpCount >= 1;
}
protected bool IsDoubleJump => JumpControl.AerialJumpCount >= 1;

protected float CurrentSpeed
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => MoveControl.CurrentSpeed;
}
protected float CurrentSpeed => MoveControl.CurrentSpeed;

protected bool IsOnGround
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => GroundCheck.IsOnGround;
}
protected bool IsOnGround=> GroundCheck.IsOnGround;

protected Vector3 LocalDirection
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => MoveControl.LocalDirection;
}
protected Vector3 LocalDirection=> MoveControl.LocalDirection;

protected Vector3 WorldPosition
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => Transform.Position;
[MethodImpl(MethodImplOptions.AggressiveInlining)]
set => Transform.Position = value;
}

protected Quaternion WorldRotation
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get => Transform.Rotation;
[MethodImpl(MethodImplOptions.AggressiveInlining)]
set => Transform.Rotation = value;
}

Expand Down

0 comments on commit cdb7baa

Please sign in to comment.