I use unity, the I try following code:
class C
{
}
void m()
{
var c = GetComponent<Collider>();
if (c)
{
}
var c2 = new C();
if (c2)
{
}
}
if (c)
syntax is correct and if (c2)
raise syntax err, I hope if (c2)
syntax right, how should i modify my class C