Orbs.cs 698 B

12345678910111213141516171819202122232425262728293031
  1. using UnityEngine;
  2. public class Orbs : MonoBehaviour
  3. {
  4. public float orbPosX;
  5. public float orbPosY;
  6. public float orbPosZ;
  7. public float orbRotX;
  8. public float orbRotY;
  9. public float orbRotZ;
  10. public bool isCollected;
  11. // Start is called once before the first execution of Update after the MonoBehaviour is created
  12. void Start()
  13. {
  14. orbPosX = transform.position.x;
  15. orbPosY = transform.position.y;
  16. orbPosZ = transform.position.z;
  17. orbRotX = transform.rotation.x;
  18. orbRotY = transform.rotation.y;
  19. orbRotZ = transform.rotation.z;
  20. }
  21. // Update is called once per frame
  22. void Update()
  23. {
  24. }
  25. }