private void DisableAi()
    {
        TankMovementAgent tankMovementAgent = tanks[0].GetComponent <TankMovementAgent>();

        tankMovementAgent.enabled = false;
        TankShooterAgent tankShooterAgent = tanks[0].GetComponentInChildren <TankShooterAgent>();

        tankShooterAgent.enabled = false;
    }
    protected override GameObject InstantiateTank(Transform transform, Material material)
    {
        GameObject AgentObj = Instantiate(shooterTank, transform);

        TankShooterAgent tankShooterAgent = AgentObj.GetComponentInChildren <TankShooterAgent>();

        tankShooterAgent.battleArenaManager = this;
        tankShooterAgent.target             = targetTank;
        tankShooterAgent.search             = "Red";

        Destroyer destroyer = AgentObj.GetComponent <Destroyer>();

        destroyer.tankBattleArenaManager = this;

        agent = tankShooterAgent;

        return(AgentObj);
    }
    private void SetAttributes(GameObject tank, Material mat, string tag, GameObject enemy)
    {
        TankMovementAgent tankMovementAgent = tank.GetComponent <TankMovementAgent>();

        tankMovementAgent.battleArenaManager = this;
        tankMovementAgent.target             = enemy;
        tankMovementAgent.Search             = tag;

        TankShooterAgent tankShooterAgent = tank.GetComponentInChildren <TankShooterAgent>();

        tankShooterAgent.battleArenaManager = this;
        tankShooterAgent.target             = enemy;
        tankShooterAgent.search             = tag;

        Destroyer destroyer = tank.GetComponent <Destroyer>();

        destroyer.tankBattleArenaManager = this;

        ColorSetter colorSetter = tank.GetComponent <ColorSetter>();

        colorSetter.SetColor(mat);
    }