public static CollisionMoveController Create(Transform transform, PhysicsMovement movement) { CollisionMoveController instance = CreateInstance <CollisionMoveController>(); instance.transform = transform; instance.movement = movement; return(instance); }
private static bool CanSkipPlatform(PhysicsMovement movement) { PlatformSkippable skipabble = movement.GetComponent <PlatformSkippable>(); return(skipabble && skipabble.CanSkip); }
public PhysicsMove(RaycastHit2D hit, float collideDistance, Dir4 dir, PhysicsMovement moving) => (this.hit, this.dir, this.collideDistance, this.moving) = (hit, dir, collideDistance, moving);