I want to make a function in the same class, that checks if a specific transforms childcount is 1 and if so, it should return true. Now I wanted to use that function in an if-statement I get the strange error: "Cannot convert method group `IsWeaponMode' to non-delegate type`bool'. " What am I doing wrong?
public bool IsWeaponMode()
{
if(Weaponobject.childCount == 1)
return true;
else
return false;
}
//code in void Update
if (IsWeaponMode)
{
Animationen.CrossFade("Walk_Weapon");
return;
}