Warnings fixed
This commit is contained in:
@@ -6569,22 +6569,6 @@ GameObject:
|
|||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 1
|
||||||
--- !u!114 &5233312447513285388
|
|
||||||
MonoBehaviour:
|
|
||||||
m_ObjectHideFlags: 0
|
|
||||||
m_CorrespondingSourceObject: {fileID: 0}
|
|
||||||
m_PrefabInstance: {fileID: 0}
|
|
||||||
m_PrefabAsset: {fileID: 0}
|
|
||||||
m_GameObject: {fileID: 5233312447513285390}
|
|
||||||
m_Enabled: 0
|
|
||||||
m_EditorHideFlags: 0
|
|
||||||
m_Script: {fileID: 11500000, guid: 44e682a32ee15cc489bf50f3a06f717b, type: 3}
|
|
||||||
m_Name:
|
|
||||||
m_EditorClassIdentifier:
|
|
||||||
feedbackText: {fileID: 0}
|
|
||||||
feedbackProgress: {fileID: 0}
|
|
||||||
feedbackProgressImage: {fileID: 0}
|
|
||||||
signPredictor: {fileID: 1991376311}
|
|
||||||
--- !u!224 &5233312447513285389
|
--- !u!224 &5233312447513285389
|
||||||
RectTransform:
|
RectTransform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -6616,7 +6600,6 @@ GameObject:
|
|||||||
serializedVersion: 6
|
serializedVersion: 6
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 5233312447513285389}
|
- component: {fileID: 5233312447513285389}
|
||||||
- component: {fileID: 5233312447513285388}
|
|
||||||
m_Layer: 5
|
m_Layer: 5
|
||||||
m_Name: Feedback
|
m_Name: Feedback
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ using UnityEngine;
|
|||||||
|
|
||||||
public interface Listener
|
public interface Listener
|
||||||
{
|
{
|
||||||
public void ProcessIncomingCall();
|
public IEnumerator ProcessIncomingCall();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,10 +47,10 @@ public abstract class AbstractFeedback : MonoBehaviour, Listener
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected string previousIncorrectSign = null;
|
protected string previousIncorrectSign = null;
|
||||||
|
|
||||||
public void ProcessIncomingCall()
|
public IEnumerator ProcessIncomingCall()
|
||||||
{
|
{
|
||||||
//UpdateFeedback2();
|
//UpdateFeedback2();
|
||||||
StartCoroutine(UpdateFeedback());
|
yield return StartCoroutine(UpdateFeedback());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddSelfAsListener()
|
public void AddSelfAsListener()
|
||||||
|
|||||||
@@ -326,7 +326,7 @@ namespace Mediapipe.Unity.Tutorial
|
|||||||
//Debug.Log($"prob = [{learnableProbabilities.Aggregate(" ", (t, kv) => $"{t}{kv.Key}:{kv.Value} ")}]");
|
//Debug.Log($"prob = [{learnableProbabilities.Aggregate(" ", (t, kv) => $"{t}{kv.Key}:{kv.Value} ")}]");
|
||||||
foreach(Listener listener in listeners)
|
foreach(Listener listener in listeners)
|
||||||
{
|
{
|
||||||
listener.ProcessIncomingCall();
|
yield return listener.ProcessIncomingCall();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -491,7 +491,7 @@ public partial class GameController : AbstractFeedback
|
|||||||
// Correct sign
|
// Correct sign
|
||||||
if (predictedSign == currentSign)
|
if (predictedSign == currentSign)
|
||||||
{
|
{
|
||||||
//yield return new WaitForSeconds(1.0f);
|
yield return new WaitForSeconds(1.0f);
|
||||||
predictSign(predictedSign);
|
predictSign(predictedSign);
|
||||||
timer = DateTime.Now;
|
timer = DateTime.Now;
|
||||||
predictedSign = null;
|
predictedSign = null;
|
||||||
@@ -505,7 +505,7 @@ public partial class GameController : AbstractFeedback
|
|||||||
timer = DateTime.Now;
|
timer = DateTime.Now;
|
||||||
previousIncorrectSign = predictedSign;
|
previousIncorrectSign = predictedSign;
|
||||||
}
|
}
|
||||||
else if (DateTime.Now - timer > TimeSpan.FromSeconds(4.0f))
|
else if (DateTime.Now - timer > TimeSpan.FromSeconds(2.0f))
|
||||||
{
|
{
|
||||||
predictSign(predictedSign);
|
predictSign(predictedSign);
|
||||||
timer = DateTime.Now;
|
timer = DateTime.Now;
|
||||||
|
|||||||
Reference in New Issue
Block a user