public static DisablePilotDeathGameLogic CreateDisablePilotDeath(GameObject parent, string name, string guid, bool disableInjuries) { GameObject disablePilotDeathGameObject = CreateGameObject(parent, name); DisablePilotDeathGameLogic disablePilotDeathGameLogic = disablePilotDeathGameObject.AddComponent <DisablePilotDeathGameLogic>(); disablePilotDeathGameLogic.encounterObjectGuid = guid; disablePilotDeathGameLogic.DisableInjuries = disableInjuries; return(disablePilotDeathGameLogic); }
private void BuildDisablePilotDeath() { bool disableInjuries = state.ContainsKey("DisableInjuries") ? (bool)state["DisableInjuries"] : false; DisablePilotDeathGameLogic disablePilotDeathGameLogic = CombatStateFactory.CreateDisablePilotDeath(this.parent, this.name, Guid.NewGuid().ToString(), disableInjuries); }