From 029c6cf7ba5ed96ad346470188423079b669ec09 Mon Sep 17 00:00:00 2001 From: HelarJ Date: Mon, 11 Apr 2022 19:08:35 +0300 Subject: [PATCH] comment out missing playerinfo methods --- .../Project Files/Scripts/JonasB/ActionGestureInteraction.cs | 4 ++++ Assets/Project Files/Scripts/JoonasP/EssenceNodeController.cs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Project Files/Scripts/JonasB/ActionGestureInteraction.cs b/Assets/Project Files/Scripts/JonasB/ActionGestureInteraction.cs index 37d019e9..d852b898 100644 --- a/Assets/Project Files/Scripts/JonasB/ActionGestureInteraction.cs +++ b/Assets/Project Files/Scripts/JonasB/ActionGestureInteraction.cs @@ -23,12 +23,16 @@ public class ActionGestureInteraction : MonoBehaviour { Debug.LogWarning(action); + + /* todo: playerinfo doesnt have these methods? if (player.GetComponent().GetRightHand() != null) { Debug.LogWarning(player.GetComponent().GetRightHand().name); if (player.GetComponent().GetRightHand().name.Equals("wand")) holdingWand = true; } + else holdingWand = false; + */ switch (action) { diff --git a/Assets/Project Files/Scripts/JoonasP/EssenceNodeController.cs b/Assets/Project Files/Scripts/JoonasP/EssenceNodeController.cs index 717aa3a4..cda96fd8 100644 --- a/Assets/Project Files/Scripts/JoonasP/EssenceNodeController.cs +++ b/Assets/Project Files/Scripts/JoonasP/EssenceNodeController.cs @@ -25,7 +25,7 @@ public class EssenceNodeController : MonoBehaviour private void Awake() { nodeMaterial = GetComponent().material; - playerInfo = PlayerInfo.Instance; + //playerInfo = PlayerInfo.Instance; playerInventory = GameObject.Find("Inventory").GetComponent(); }