Esempio n. 1
0
    public void MatchEnded()
    {
        cityGenerator.DestroyAll();
        EndEpisode();

        foreach (Transform fighter in agentStatus.arenaManager.FighterArray)
        {
            fighter.GetComponent <Rigidbody>().angularVelocity = Vector3.zero;
            fighter.GetComponent <Rigidbody>().velocity        = Vector3.zero;
            fighter.transform.position = new Vector3(0, -100, 0);
            fighter.GetComponent <AgentStatus>().FighterRespawn();
            fighter.GetComponent <FighterAgent>().SetModel(fighterCaptureBehavior, CaptureArtifact);
        }
        cityGenerator.SpawnAll();
    }