Unity错误CS0029:无法将类型`bool'隐式转换为`int',但它是bool

Sai*_*men -2 c# if-statement unity-game-engine

我有错误

CS0029:无法将bool类型隐式转换为int.

我的声明:

public bool isBig = false;
Run Code Online (Sandbox Code Playgroud)

如果语句有错误:

if (player.GetHP() < 6 && player.isBig == false)
Run Code Online (Sandbox Code Playgroud)

我不明白这一点.我也改变了这个bool返回并检查了几个解决方案:

player.GetBig() == false/0 / (player.GetBig()) == false/0 / !(player.GetBig()) 
Run Code Online (Sandbox Code Playgroud)

但没有任何作用......

//编辑

public int GetBig()
    { // isBig is bool
        return this.isBig;
    }

public int GetHP()
{ // HP is int
    return this.HP;
}
Run Code Online (Sandbox Code Playgroud)

Mat*_*eno 5

简单的拼写错误.

 public int GetBig() 
Run Code Online (Sandbox Code Playgroud)

应该

public bool GetBig()
Run Code Online (Sandbox Code Playgroud)