public Aspects.Secondary? GetAspectForPotionSlot(PotionSlot slot)
    {
        BodyPart[] parts = slot.ToBodyParts();
        if (parts.Length == 0) {
            return null;
        }

        Transform partTransform = bodyPartToTransform(parts[0]);

        return PlayerSprites.instance().getAspect(parts[0], partTransform.GetComponent<SpriteRenderer>().sprite);
    }
    public Aspects.Secondary?GetAspectForPotionSlot(PotionSlot slot)
    {
        BodyPart[] parts = slot.ToBodyParts();
        if (parts.Length == 0)
        {
            return(null);
        }

        Transform partTransform = bodyPartToTransform(parts[0]);

        return(PlayerSprites.instance().getAspect(parts[0], partTransform.GetComponent <SpriteRenderer>().sprite));
    }
예제 #3
0
 public BodyPart[] getAffectedBodyParts()
 {
     return(_slot.ToBodyParts());
 }