start minigame with gesure named "Circle"
This commit is contained in:
@@ -4915,7 +4915,7 @@ MeshRenderer:
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3928666337405863711}
|
||||
m_Enabled: 1
|
||||
m_Enabled: 0
|
||||
m_CastShadows: 1
|
||||
m_ReceiveShadows: 1
|
||||
m_DynamicOccludee: 1
|
||||
|
||||
@@ -76,7 +76,13 @@ public class ActionGestureInteraction : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogWarning("CIRCLE");
|
||||
GameObject minigame = FindMinigame();
|
||||
if (minigame != null)
|
||||
{
|
||||
float distance = Vector3.Distance(transform.position, minigame.transform.position);
|
||||
if(distance < 4f) minigame.GetComponent<WellController>().StartMinigame();
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
case "Triangle":
|
||||
|
||||
Reference in New Issue
Block a user