Advertisement
evelynshilosky

PlayerData - Part 26

Nov 17th, 2023 (edited)
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.71 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 string[] quickSlotsContent;
  15.  
  16.     public PlayerData(float[] _playerStats, float[] _playerPosAndRot, string[] _inventoryContent, string[] _quickSlotsContent)
  17.     {
  18.         playerStats = _playerStats;
  19.         playerPositionAndRotation = _playerPosAndRot;
  20.         inventoryContent = _inventoryContent;
  21.         quickSlotsContent = _quickSlotsContent;
  22.     }
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement