浏览代码

made Item fields as they were before

/main
circa94 4 年前
当前提交
885caae6
共有 2 个文件被更改,包括 19 次插入13 次删除
  1. 10
      UOP1_Project/Assets/Inventory/ScriptableObjects/Items/Salad.asset
  2. 22
      UOP1_Project/Assets/Inventory/Scripts/ScriptableObjects/Item.cs

10
UOP1_Project/Assets/Inventory/ScriptableObjects/Items/Salad.asset


m_Script: {fileID: 11500000, guid: 58a5b32581978a141a66d240261449d0, type: 3}
m_Name: Salad
m_EditorClassIdentifier:
Name: Salad
PreviewImage: {fileID: 0}
Description: A green salad
ItemType: {fileID: 11400000, guid: 24ac82c7b4c359e46971d2d454d1f434, type: 2}
Prefab: {fileID: 3692601780327477930, guid: 5a54f3a933a5913478d31220031b05fc, type: 3}
_name: Salad
_previewImage: {fileID: 0}
_description: A green salad
_itemType: {fileID: 11400000, guid: 24ac82c7b4c359e46971d2d454d1f434, type: 2}
_prefab: {fileID: 3692601780327477930, guid: 5a54f3a933a5913478d31220031b05fc, type: 3}

22
UOP1_Project/Assets/Inventory/Scripts/ScriptableObjects/Item.cs


using System;
using UnityEngine;
using UnityEngine;
[Serializable]
public string Name;
[SerializeField]
private string _name;
public Sprite PreviewImage;
private Sprite _previewImage;
public string Description;
private string _description;
public ItemType ItemType;
private ItemType _itemType;
public GameObject Prefab;
private GameObject _prefab;
public string Name => _name;
public Sprite PreviewImage => _previewImage;
public string Description => _description;
public ItemType ItemType => _itemType;
public GameObject Prefab => _prefab;
}
正在加载...
取消
保存