Advertisement
evelynshilosky

PlayerData - Part 23

Nov 3rd, 2023
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.52 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. [System.Serializable]
  6. public class PlayerData
  7. {
  8.     public float[] playerStats; // [0] - Health, [1] - Calories, [2] - Hydration
  9.  
  10.     public float[] playerPositionAndRotation; // position x, y, z and rotation x, y, z
  11.  
  12.     //public string[] inventoryContent;
  13.  
  14.     public PlayerData(float[] _playerStats, float[] _playerPosAndRot)
  15.     {
  16.         playerStats = _playerStats;
  17.         playerPositionAndRotation = _playerPosAndRot;
  18.     }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement