setWeapon method
Implementation
void setWeapon(int index ) {
for (int i = 0; i < weapons.length; i ++ ){
weapons[ i ].visible = false;
}
final activeWeapon = weapons[ index ];
//if ( activeWeapon ) {
activeWeapon.visible = true;
meshWeapon = activeWeapon;
syncWeaponAnimation();
//}
}