Rotatable.cs (509B)
1 using Slimecing.SimpleComponents.Movement.Rotatable_Types; 2 using UnityEngine; 3 4 namespace Slimecing.SimpleComponents.Movement 5 { 6 public class Rotatable : MonoBehaviour 7 { 8 9 [SerializeField] private RotatableLogic rotatableLogic; 10 11 public void RotateToVector(Transform objectTransform, Vector3 desiredLookAt, float deltaTime) 12 { 13 if (rotatableLogic == null) return; 14 rotatableLogic.RotateToVector(objectTransform, desiredLookAt, deltaTime); 15 } 16 } 17 }