private void Start() { isSavingData = true; countBetweenCapture = 1 / (dataSavingFrequence * Time.fixedDeltaTime); managePlayers = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ManagePlayers>(); readerDataGame = new ReaderDataLearning(transform, managePlayers, angleShipFieldview, nbRaycasts, GetComponent <Snake>().positionHotSpotFront, GetComponent <Player>()); }
private void Start() { managePlayers = GameObject.FindGameObjectWithTag("GameManager").GetComponent <ManagePlayers>(); dataGameReader = new ReaderDataLearning(transform, managePlayers, angleShipFieldview, nbRaycasts, GetComponent <Snake>().positionHotSpotFront, GetComponent <Player>()); }