public void Test1_ToggleMat() { isMatTran = !isMatTran; if (isMatTran) { agentsController.Test1_SetTransMat(); } else { agentsController.Test1_SetSolidMat(); } }