//Vector3 lastPosition; // Start is called before the first frame update void Start() { //Debug.Log(transform.rotation.eulerAngles); nnAgent = GetComponent <AgentShoot>(); //width - 90 g //1000 - x //x = 90 * pixels / w //width = Screen.width; //height = Screen.height; width = 1024; //por si cambia la resolucion height = 576; //lastPosition = Input.mousePosition; //Cursor.lockState = CursorLockMode.Locked; // Si esta compilado dabe usar el bot /* #if UNITY_STANDALONE * useNeuralNet = false; #endif*/ }
// 0: idle tolerable range shape // 1: idle punish factor // 2: idle reward factor // 3: seek tolerable range shape // 4: seek punish factor // 5: seek reward factor void Start() { scene = GameObject.Find("Scene").transform; agentShoot = GetComponent <AgentShoot>(); nextTimeClic = timeClic + Random.Range(-clicVariance, clicVariance); }
void Start() { scene = GameObject.Find("Scene").transform; agentShoot = GetComponent <AgentShoot>(); }