essence add to playerinfo
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user