// Update is called once per frame void Update() { if (old_bool != bButton.b) { old_bool = bButton.b; PrintBool booltext = GameObject.Find("BoolText").GetComponent <PrintBool>(); booltext.printBool(old_bool); } }
public static void Main() { BoolPrinter.PrintBool parsed = new PrintBool(); parsed.LogAsString(true); }