essence add to playerinfo

This commit is contained in:
joonasp
2022-04-11 18:27:18 +03:00
parent f7734432cc
commit f032bb323a
17 changed files with 1002 additions and 871 deletions

View File

@@ -28,6 +28,7 @@ public class ActionGestureInteraction : MonoBehaviour
Debug.LogWarning(player.GetComponent<PlayerInfo>().GetRightHand().name);
if (player.GetComponent<PlayerInfo>().GetRightHand().name.Equals("wand")) holdingWand = true;
}
else holdingWand = false;
switch (action)
{
@@ -56,7 +57,8 @@ public class ActionGestureInteraction : MonoBehaviour
case "Circle":
if (holdingWand)
{
Debug.LogWarning("WAND CIRCLE");
Debug.LogWarning("Arcing fireball");
}
else
{
@@ -98,7 +100,7 @@ public class ActionGestureInteraction : MonoBehaviour
}
} */
}
void EnableDisablePortal(GameObject portal)
void MinigameEnable(GameObject portal)
{
// Did the raycast catch a portal in front of us?
if (portal != null)
@@ -125,7 +127,7 @@ public class ActionGestureInteraction : MonoBehaviour
}
}
GameObject FindPortalInFront()
GameObject FindMinigame()
{
Ray ray = playerCamera.ViewportPointToRay(new Vector3(0.5f, 0.5f, 0));
RaycastHit hit;

View File

@@ -49,7 +49,7 @@ public class PortalTeleporter : MonoBehaviour
Debug.Log(_enabled);
if (_portalCanBeUsed && !_justUsed && _enabled)
{
if (other.name.StartsWith("Holster") || other.tag.Contains(""))
if (other.name.StartsWith("Holster") || other.tag.Contains("Holster"))
{
Debug.Log("holster");
}