protected override void OnInitialize(ModuleConfiguration configuration) { ActionConfig actionConfig = configuration as ActionConfig; RateOfFire = actionConfig.RateOfFire; AutoFire = actionConfig.AutoFire; RunAndGun = actionConfig.RunAndGun; ConsumesItem = actionConfig.ConsumesItem; ActionAnimation = actionConfig.ActionAnimation; ActionType = actionConfig.ActionType; SpawnPrefab = actionConfig.SpawnPrefab; ActivationFrame = actionConfig.ActivationFrame(); ActionScript = ActionScriptSelector.InstantiateScript(actionConfig.SelectedScript); ActionScript.Initialize(Owner); }