SHARE
TWEET

Card

a guest Jan 24th, 2020 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. [CreateAssetMenu(fileName = "New Character Card", menuName = "Cards/Character")]
  6. public class Card : ScriptableObject
  7. {
  8.     public new string name;
  9.     public string description;
  10.     public Sprite artwork;
  11.     public int manaCost;
  12.     public int attack;
  13.     public int defense;
  14.     public int health;
  15.     public int rarity; // 0 = common, 1 = uncommon, 2 = rare, 3 = legendary
  16.     public int copper;
  17.     public int silver;
  18.     public int gold;
  19.     public int platinum;
  20. }
  21.  
  22. [CreateAssetMenu(fileName = "New Sorcery Card", menuName = "Cards/Sorcery")]
  23. public class Card2 : ScriptableObject
  24. {
  25.     public new string name;
  26.     public string description;
  27.     public Sprite artwork;
  28.     public int manaCost;
  29.     public int rarity; // 0 = common, 1 = uncommon, 2 = rare, 3 = legendary
  30. }
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
Top