public static void SetUtility(GameObject gameObject) { SkillLocator component = gameObject.GetComponent <SkillLocator>(); GenericSkill skillslot = component.utility; SkillManagement.SetSkill(ref skillslot, typeof(CastSmokescreen)); component.utility = skillslot; config(); }
public static void SetSecondary(GameObject gameObject) { SkillLocator component = gameObject.GetComponent <SkillLocator>(); GenericSkill skillslot = component.secondary; SkillManagement.SetSkill(ref skillslot, typeof(PrepSecondary)); component.secondary = skillslot; config(); }