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);
        }
Пример #3
0
 public PhysicsMove(RaycastHit2D hit, float collideDistance, Dir4 dir, PhysicsMovement moving) =>
 (this.hit, this.dir, this.collideDistance, this.moving) = (hit, dir, collideDistance, moving);