|= 运算符到底做了什么?

What exactly does the |= operator do?

这个运算符 |= 到底是做什么的? 我在 C#

中有这段 Unity 代码
bool shoot = Input.GetButtonDown("Fire1");
shoot |= Input.GetButtonDown("Fire2");

是 OR 赋值运算符

相当于:

shoot = shoot | Input.GetButtonDown("Fire2");

参见: https://msdn.microsoft.com/en-us/library/h5f1zzaw.aspx