SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public abstract class Outfit : MonoBehaviour
  2. {
  3.    [SerializeField] Sprite bodySprite;
  4.    [SerializeField] Sprite armSprite;
  5.    [SerializeField] Sprite lowerArmSprite;
  6.  
  7.     public void Dress(SpriteRenderer body, SpriteRenderer LArm, SpriteRenderer RArm, SpriteRenderer LRArm, SpriteRenderer LLArm)
  8.     {
  9.         body.sprite = bodySprite;
  10.         LArm.sprite = armSprite;
  11.         RArm.sprite = armSprite;
  12.         LRArm.sprite = lowerArmSprite;
  13.         LLArm.sprite = lowerArmSprite;
  14.     }
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top