Build for human

build for human play.
This commit is contained in:
2022-12-04 06:29:50 +09:00
parent 62b06552b1
commit f5724dcda7
6 changed files with 429 additions and 41910 deletions
+1 -1
View File
@@ -1 +1 @@
{"count":1,"self":29.5144064,"total":31.109803999999997,"children":{"InitializeActuators":{"count":16,"self":0.0020061,"total":0.0020061,"children":null},"InitializeSensors":{"count":16,"self":0.0015064,"total":0.0015064,"children":null},"AgentSendState":{"count":1300,"self":0.032629399999999996,"total":1.3793506,"children":{"CollectObservations":{"count":10400,"self":1.3266885,"total":1.3266885,"children":null},"WriteActionMask":{"count":10400,"self":0.0055122,"total":0.0055122,"children":null},"RequestDecision":{"count":10400,"self":0.014520499999999999,"total":0.014520499999999999,"children":null}}},"DecideAction":{"count":1300,"self":0.0246036,"total":0.0246036,"children":null},"AgentAct":{"count":1300,"self":0.18743069999999998,"total":0.18743069999999998,"children":null}},"gauges":{},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1670056714","unity_version":"2021.3.14f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2021.3.14f1\\Editor\\Unity.exe -projectpath C:\\Users\\UCUNI\\OneDrive\\Unity\\ML-Agents\\Aimbot-ParallelEnv -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-UCUNI -hubSessionId f236fc50-7039-11ed-847b-693e2468b0ed -accessToken 9ZtagkYCGQGJbz1h79OWqFnBSy12hJOOJ_slXKTD6NI00ef","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"InGame","end_time_seconds":"1670056744"}}
{"count":1,"self":19.9180544,"total":20.1274564,"children":{"InitializeActuators":{"count":2,"self":0.00099899999999999989,"total":0.00099899999999999989,"children":null},"InitializeSensors":{"count":2,"self":0.00050159999999999994,"total":0.00050159999999999994,"children":null},"AgentSendState":{"count":760,"self":0.0055133,"total":0.16951,"children":{"CollectObservations":{"count":760,"self":0.1619947,"total":0.1619947,"children":null},"WriteActionMask":{"count":760,"self":0.0005007,"total":0.0005007,"children":null},"RequestDecision":{"count":760,"self":0.0015013,"total":0.0015013,"children":null}}},"DecideAction":{"count":760,"self":0.0056145,"total":0.0056145,"children":null},"AgentAct":{"count":760,"self":0.0322782,"total":0.0322782,"children":null}},"gauges":{},"metadata":{"timer_format_version":"0.1.0","start_time_seconds":"1670097100","unity_version":"2021.3.14f1","command_line_arguments":"C:\\Program Files\\Unity\\Hub\\Editor\\2021.3.14f1\\Editor\\Unity.exe -projectpath C:\\Users\\UCUNI\\OneDrive\\Unity\\ML-Agents\\Aimbot-ParallelEnv -useHub -hubIPC -cloudEnvironment production -licensingIpc LicenseClient-UCUNI -hubSessionId e96bd570-7311-11ed-acd6-8dc2264f2f57 -accessToken sE_87lq5Gtkp2VhIirO1m14Zij4IieA_s6uJvyw-naE00ef","communication_protocol_version":"1.5.0","com.unity.ml-agents_version":"2.0.1","scene_name":"InGame","end_time_seconds":"1670097120"}}
+43
View File
@@ -0,0 +1,43 @@
using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class PlayerUI : MonoBehaviour
{
public GameObject TargetConObj;
public GameObject ParamaObj;
public TextMeshProUGUI targetText;
public TextMeshProUGUI inareaText;
private TargetController targetController;
private ParameterContainer parameterContainer;
private void Start()
{
targetController = TargetConObj.GetComponent<TargetController>();
parameterContainer = ParamaObj.GetComponent<ParameterContainer>();
}
void Update()
{
int tType = targetController.targetTypeInt;
targetText.text = Enum.GetName(typeof(TargetController.Targets), tType);
if(tType == (int)TargetController.Targets.Go)
{
if (parameterContainer.agentInArea == 1)
{
inareaText.text = "In!";
}
else
{
inareaText.text = "nah";
}
}
else
{
inareaText.text = "nah";
}
}
}
+11
View File
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0707c4fae8f98174da082bfb5ab6347d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
+351 -41903
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -10,7 +10,7 @@ public class ParameterContainer : MonoBehaviour
private TargetController targetCon;
private SceneBlockContainer blockCont;
private float agentDistance;
private int agentInArea;
public int agentInArea;
[Header("Env")]