2016-10-21 ビット C# aを0, 1とか int baseFlg = 0; int flg = a; Debug.Log(~baseFlg & flg); if((~baseFlg & flg) > 0) { Debug.Log("ok"); }