crafting tweaks

This commit is contained in:
joonasp
2022-04-25 16:06:41 +03:00
parent 96f2f41d9b
commit 73dd34ba61
16 changed files with 9388 additions and 8853 deletions

View File

@@ -27,10 +27,16 @@ public class ActionGestureInteraction : MonoBehaviour
{
Debug.LogWarning(action);
Debug.LogWarning(player.GetComponent<PlayerInfo>().GetRightHand());
if (player.GetComponent<PlayerInfo>().GetRightHand() != null)
{
if (player.GetComponent<PlayerInfo>().GetRightHand().name.StartsWith("wand")) holdingWand = true;
wandPower = player.GetComponent<PlayerInfo>().GetRightHand().GetComponent<WandData>().power;
if (player.GetComponent<PlayerInfo>().GetRightHand().name.Contains("wand"))
{
holdingWand = true;
wandPower = player.GetComponent<PlayerInfo>().GetRightHand().GetComponent<WandData>().power;
}
}
else holdingWand = false;