SpatialGameObjectMono.cs 431 B

123456789101112131415161718
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class SpatialGameObjectMono : MonoBehaviour
  5. {
  6. private SpatialGameObjectData data;
  7. public void SetDataEntity(SpatialGameObjectData data)
  8. {
  9. this.data = data;
  10. }
  11. public void Update()
  12. {
  13. data.SetTransformData(this.transform.localPosition, this.transform.localRotation, this.transform.localScale);
  14. }
  15. }