public void SetCoopMode(COOP_MODE_TYPE coop_mode, int client_id) { if ((coop_mode == COOP_MODE_TYPE.NONE || coop_mode == COOP_MODE_TYPE.ORIGINAL) && client_id != 0) { Log.Error(LOG.INGAME, "StageObject::SetCoopMode() Err ( client_id is invalid. )"); } if (coop_mode == COOP_MODE_TYPE.ORIGINAL && !CoopStageObjectUtility.CanControll(this)) { Log.Error(LOG.INGAME, "StageObject::SetCoopMode. field block obj({0}) to {1}", this, coop_mode); } else { if (coopMode != 0) { bool flag = false; if (CoopManager.IsValidInCoop()) { flag = true; } if (!flag) { Log.Error(LOG.INGAME, "StageObject::SetCoopMode() Err ( not coop )"); return; } } coopMode = coop_mode; coopClientId = client_id; } }