public bool CheckCondition() { switch (type) { case 0: return(IntCompare(parameter1.returnInt(null), parameter2.returnInt(null))); case 1: return(BoolCompare(parameter1.returnBool(null), parameter2.returnBool(null))); case 2: return(StringCompare(parameter1.returnString(null), parameter2.returnString(null))); case 3: return(FloatCompare(parameter1.returnFloat(null), parameter2.returnFloat(null))); case 4: return(PlayerCompare(parameter1.returnPlayer(null), parameter2.returnPlayer(null))); case 5: return(TitanCompare(parameter1.returnTitan(null), parameter2.returnTitan(null))); default: return(false); } }
public bool checkCondition() { switch (type) { case 0: return(intCompare(parameter1.returnInt(null), parameter2.returnInt(null))); case 1: return(boolCompare(parameter1.returnBool(null), parameter2.returnBool(null))); case 2: return(stringCompare(parameter1.returnString(null), parameter2.returnString(null))); case 3: return(floatCompare(parameter1.returnFloat(null), parameter2.returnFloat(null))); case 4: return(playerCompare(parameter1.returnPlayer(null), parameter2.returnPlayer(null))); case 5: return(titanCompare(parameter1.returnTitan(null), parameter2.returnTitan(null))); } return(false); }