private static bool CanSkipPlatform(PhysicsMovement movement) { PlatformSkippable skipabble = movement.GetComponent <PlatformSkippable>(); return(skipabble && skipabble.CanSkip); }
private static bool CanSkipPlatform(Transform transform) { PlatformSkippable skipabble = transform.GetComponent <PlatformSkippable>(); return(skipabble && skipabble.CanSkip); }