small fixes
This commit is contained in:
@@ -26,7 +26,7 @@ public class EssenceNodeController : MonoBehaviour
|
||||
{
|
||||
nodeMaterial = GetComponent<Renderer>().material;
|
||||
playerInfo = PlayerInfo.Instance;
|
||||
playerInventory = GameObject.Find("Inventory").GetComponent<Inventory>();
|
||||
//playerInventory = GameObject.Find("Inventory").GetComponent<Inventory>();
|
||||
}
|
||||
|
||||
public void Touched()
|
||||
@@ -65,7 +65,7 @@ public class EssenceNodeController : MonoBehaviour
|
||||
playerInfo.AddEssenceBasic(1);
|
||||
yield return new WaitForSeconds(2f);
|
||||
//TODO: Update value in player inventory
|
||||
playerInventory.AddItem(GetComponent<ItemData>());
|
||||
//playerInventory.AddItem(GetComponent<ItemData>());
|
||||
Destroy(gameObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ public class PlayerInfo : MonoBehaviour
|
||||
{
|
||||
Instance = this;
|
||||
health = 5;
|
||||
essence_basic = 1000;
|
||||
essence_basic = 1;
|
||||
rightHandHeld = null;
|
||||
leftHandHeld = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user