public void Fuzzify() { morality = float.Parse(xVal.text); chaos = float.Parse(xVal.text); fuzzyGood = good.CheckIfContained(morality); fuzzyEvil = evil.CheckIfContained(morality); fuzzyNeutral = neutral.CheckIfContained(morality); fuzzyChaos = chaotic.CheckIfContained(chaos); fuzzyLaw = lawful.CheckIfContained(chaos); fuzzyCNeutral = cNeutral.CheckIfContained(chaos); Debug.Log("This number is held within the good set to " + fuzzyGood * 100 + " degree"); Debug.Log("This number is held within the grey set to " + fuzzyNeutral * 100 + " degree"); //if (fuzzyNeutral > fuzzyGood && fuzzyNeutral > fuzzyEvil) //{ // isNeutral = true; //} Debug.Log("This number is held within the evil set to " + fuzzyEvil * 100 + " degree"); //if (fuzzyEvil > fuzzyGood && fuzzyEvil > fuzzyNeutral) //{ // isEvil = true; //} Debug.Log(fuzzyChaos * 100 + "this is chaos"); Debug.Log(fuzzyLaw * 100 + "this is lawful"); mAlignment = DetermineAlignment(true); cAlignment = DetermineAlignment(false); Debug.Log("your alignment is " + cAlignment + " " + mAlignment); float nCrisp = DefuzzifyMorality(); Debug.Log("new crisp value " + nCrisp.ToString()); }