| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- [System.Serializable]
- public class GameData
- {
- public float playerPosX;
- public float playerPosY;
- public float playerPosZ;
-
- public float playerRotX;
- public float playerRotY;
- public float playerRotZ;
-
- public int orbsCollected;
- public float seed;
- public int[] orbs;
-
-
- public bool isGameActive;
- public int timeRemaining;
- public int settings;
-
- public GameData(GameManager gameManager)
- {
- playerPosX = gameManager.playerPosX;
- playerPosY = gameManager.playerPosY;
- playerPosZ = gameManager.playerPosZ;
- playerRotX = gameManager.playerRotX;
- playerRotY = gameManager.playerRotY;
- playerRotZ = gameManager.playerRotZ;
- orbsCollected = gameManager.orbsCollected;
- seed = gameManager.seed;
- isGameActive = gameManager.isGameActive;
- timeRemaining = gameManager.timeRemaining;
- settings = gameManager.settings;
- }
-
- }
|