GameData.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. [System.Serializable]
  5. public class GameData
  6. {
  7. public float playerPosX;
  8. public float playerPosY;
  9. public float playerPosZ;
  10. public float playerRotX;
  11. public float playerRotY;
  12. public float playerRotZ;
  13. public int orbsCollected;
  14. public float seed;
  15. public int[] orbs;
  16. public bool isGameActive;
  17. public int timeRemaining;
  18. public int settings;
  19. public GameData(GameManager gameManager)
  20. {
  21. playerPosX = gameManager.playerPosX;
  22. playerPosY = gameManager.playerPosY;
  23. playerPosZ = gameManager.playerPosZ;
  24. playerRotX = gameManager.playerRotX;
  25. playerRotY = gameManager.playerRotY;
  26. playerRotZ = gameManager.playerRotZ;
  27. orbsCollected = gameManager.orbsCollected;
  28. seed = gameManager.seed;
  29. isGameActive = gameManager.isGameActive;
  30. timeRemaining = gameManager.timeRemaining;
  31. settings = gameManager.settings;
  32. }
  33. }