private void Banditspecial(GameObject gameObject) { SkillLocator component = gameObject.GetComponent <SkillLocator>(); GenericSkill special = component.special; GenericSkill genericSkill = gameObject.AddComponent <GenericSkill>(); genericSkill.skillName = "Mortar"; genericSkill.baseRechargeInterval = 5f; genericSkill.baseMaxStock = 1; genericSkill.rechargeStock = 1; genericSkill.isBullets = false; genericSkill.shootDelay = 0.3f; genericSkill.beginSkillCooldownOnSkillEnd = false; genericSkill.stateMachine = component.special.stateMachine; genericSkill.activationState = new SerializableEntityStateType(typeof(EntityStates.Toolbot.AimStunDrone)); genericSkill.interruptPriority = InterruptPriority.Skill; genericSkill.isCombatSkill = true; genericSkill.noSprint = false; genericSkill.canceledFromSprinting = false; genericSkill.mustKeyPress = true; genericSkill.requiredStock = 1; genericSkill.stockToConsume = 1; genericSkill.hasExecutedSuccessfully = false; genericSkill.icon = special.icon; Destroy(special); SkillManagement.SetSkill(ref genericSkill, typeof(EntityStates.Toolbot.AimStunDrone)); component.special = genericSkill; }
public static void SetUtility(GameObject gameObject) { SkillLocator component = gameObject.GetComponent <SkillLocator>(); GenericSkill skillslot = component.utility; SkillManagement.SetSkill(ref skillslot, typeof(NewUtility)); component.utility = skillslot; //config(); }