slimecing

a fighting game featuring slimes and swords
Log | Files | Refs | README

MovingController.cs (539B)


      1 using UnityEngine;
      2 
      3 namespace Slimecing.Environment.Moving
      4 {
      5     public abstract class MovingController : MonoBehaviour
      6     {
      7         //public Vector3 originalPosition { get; set; }
      8 
      9         //public Quaternion originalRotation { get; set; }
     10 
     11         public RigidbodyMover mover { get; private set; }
     12 
     13         public void InitializeMover(RigidbodyMover rbMover)
     14         {
     15             mover = rbMover;
     16         }
     17 
     18         public abstract void TickMover(out Vector3 targetPosition, out Quaternion targetRotation, float deltaTime);
     19     }
     20 }