-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInventory.cs
66 lines (61 loc) · 2.14 KB
/
Inventory.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using UnityEngine;
namespace Blueprints
{
internal class Inventory : MonoBehaviour
{
//protected bool bOpened = false;
//
//private PickUp pickUp = null;
//protected override void Collect()
//{
// ModAPI.Log.Write(string.Format("Picked up Item: {0}, ID: {1}", TheForest.Items.ItemDatabase.ItemById(this._itemId)._name, this._itemId));
//
// base.Collect();
//}
//[ModAPI.Attributes.ExecuteOnGameStart]
//private static void Init()
//{
// GameObject GO = new GameObject("__Inventory__");
// GO.AddComponent<Inventory>();
// ModAPI.Log.Write("Inventory added to scene");
// }
//private void Start()
//{
// pickUp = new TheForest.Items.World.PickUp();
// ModAPI.Log.Write(string.Format("Pickup initialized {0}", pickUp.ToString()));
//}
//
//private void OnGUI()
//{
// if (bOpened)
// {
// ModAPI.Log.Write(string.Format("Picked up Item: {0}, ID: {1}", TheForest.Items.ItemDatabase.ItemById(pickUp._itemId)._name, pickUp._itemId));
// }
//}
//private void Update()
//{
// //TheForest.Utils.Scene.HudGui.AddIcon.SetActive(false);
// //TheForest.Utils.Scene.HudGui.ClickToCombineInfo.SetActive(false);
// //TheForest.Utils.Scene.HudGui._cantCarryItemView.SetActive(false);
// //TheForest.Utils.Scene.HudGui.PlaceIcon.SetActive(false);
// //TheForest.Utils.Scene.HudGui.PlayerOverlay._inventoryIcon.enabled = false;
// //TheForest.Utils.Scene.HudGui.RotateIcon.SetActive(false);
//
// if (ModAPI.Input.GetButtonDown("Log_PickUp", "Blueprints"))
// {
// bOpened = !bOpened;
// ModAPI.Log.Write(string.Format("Logging {0}", bOpened));
// }
//
//}
//protected override void Collect()
//{
// if (_itemId > 0)
// {
//
// }
//
// base.Collect();
//}
}
}