V3.1.7 修正ChartOn不工作问题

V3.1.7 修正ChartOn不工作问题
This commit is contained in:
2023-08-08 16:34:46 +09:00
parent df1958c48e
commit 4318803f85
4 changed files with 57 additions and 60 deletions
-3
View File
@@ -187,18 +187,15 @@ public class TargetController : MonoBehaviour
if (thisTargetPosition != null)
{
targetPosition = (Vector3)thisTargetPosition;
Debug.Log("Target Position != null" + targetPosition);
}
if (targetTypeInt == (int)SceneBlockContainer.Targets.Free || targetTypeInt == (int)SceneBlockContainer.Targets.Stay)
{
Debug.Log("UpdateTargetStates Target Position: set all zeros ");
for (int i = 1; i < targetState.Length; i++)
// set target position state to 0
targetState[i] = 0f;
}
else
{
Debug.Log("Target Position == null" + targetPosition);
targetState[1] = targetPosition.x;
targetState[2] = targetPosition.y;
targetState[3] = targetPosition.z;