Ejemplo n.º 1
0
 void FlipToWall(WallCheckData wall)
 {
     if (wall.direction != ForwardScalar())
     {
         ForceFlip();
     }
 }
Ejemplo n.º 2
0
	void OnWallHit(WallCheckData wall) {
		EndDashCooldown();
		InterruptMeteor();
		RefreshAirMovement();
		if (bufferedJump && unlocks.HasAbility(Ability.WallClimb)) {
			WallJump();
			CancelBufferedJump();
		}
	}
Ejemplo n.º 3
0
	void UpdateWallSliding() {
		bool touchingLastFrame = wall!=null;
		wall = wallCheck.GetWall();

		if (!touchingLastFrame && (wall!=null)) {
			OnWallHit(wall);
		} else if (touchingLastFrame && (wall==null)) {
			OnWallLeave();
			return;
		}

		if (wall != null) {
			FlipToWall(wall);
		}

		anim.SetBool("TouchingWall", touchingLastFrame);
	}