commit be867c3c7cd6256698ec5de62eeb88e902395049 parent 831d4037b10be6a399d73b9bdd41a94a5932756d Author: PlutoTank <qwolkensperg@gmail.com> Date: Thu, 23 Apr 2020 21:29:22 -0400 More moving platform types Diffstat:
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/Assets/Scripts/Slimecing/Environment/Moving/MovingPlatformLogic/EmptyMovingPlatform.cs b/Assets/Scripts/Slimecing/Environment/Moving/MovingPlatformLogic/EmptyMovingPlatform.cs @@ -0,0 +1,14 @@ +using UnityEngine; + +namespace Slimecing.Environment.Moving.MovingPlatformLogic +{ + public class EmptyMovingPlatform : MovingController + { + public override void TickMover(out Vector3 targetPosition, out Quaternion targetRotation, float deltaTime) + { + var moverTransform = transform; + targetPosition = mover.moverRigidbody.position; + targetRotation = mover.moverRigidbody.rotation; + } + } +} diff --git a/Assets/Scripts/Slimecing/Environment/Moving/MovingPlatformLogic/EmptyMovingPlatform.cs.meta b/Assets/Scripts/Slimecing/Environment/Moving/MovingPlatformLogic/EmptyMovingPlatform.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7fd9db92a5fc38e40914f599ef159242 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: