$
string arg1 = "张山";
string arg2 = "李肆";
Debug.Log( string.Format("{0}是{1}的随从",arg1,arg2));
Debug.Log( $"{arg1}是{arg2}的随从");
string name = "ClassName";
Debug.Log($"public class {name}: MonoBehaviour {{}}");
@
Debug.Log(@"public class Test: MonoBehaviour {
}");
?
int? num1 = null;
System.Nullable<int> num2 = null;
int num3 = num1==null?1:2;
??
int? num1 = null;
num1 =num1??1;
^
bool b_t1 = true;
bool b_t2 = true;
bool b_f1 = false;
bool b_f2 = false;
Debug.Log(b_t1^b_t2);
Debug.Log(b_f1^b_f2);
Debug.Log(b_t1^b_f1);