использование массива или списка с Linq может упростить ваш тест:
using System.Linq;
using System.Collections.Generic;
// using array a = trig[0], b = trig[1] and so on
private bool[] trig = new bool[7] { true, false, false, true, true, false, true };
//or using list a = trig1[0], b = trig1[1] and so on
private List<bool> trig1 = new List<bool>{ true, false, false, true, true, false, true };
void Start(){
//same syntax array or list
trig[0] = false; // change value for fun
if(trig.Count(p => p) ==3)// result = 3
{
TheMethod();
}
trig1[0] = false;// change value for fun
if(trig1.Count(p => p) ==3) //result = 3
{
TheMethod();
}
//if you want to keep your boolean variable outside a collection
//you add your boolean variables to list (or array)
var list = new List<Bool>() {a,b,c,d,e,f,g};
if (list.Count(p => p) == 3)
{
TheMethod();
}
}