void OnMouseDown() { if (b.state == BuildingStates.Normal) { // 设置当前兵营为主兵营 bc.SetMainBarrack(this); } }