Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SkillLocator skillComponent = BodyCatalog.FindBodyPrefab("BanditBody").GetComponent<SkillLocator>();
- SkillDef primaryDef = SkillDef.CreateInstance<SkillDef>();
- //Set the parameters of primaryDef
- SkillDef primaryShotgunDef = SkillDef.CreateInstance<SkillDef>();
- //Set the parameters of primaryShotgunDef
- SkillFamily.Variant[] primaryVariants = new SkillFamily.Variant[2];
- primaryVariants[0].skillDef = primaryDef;
- primaryVariants[0].unlockableName = "";
- primaryVariants[1].skillDef = primaryShotgunDef;
- primaryVariants[1].unlockableName = "";
- skillComponent.primary.skillFamily.variants = primaryVariants;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement