Untitled

 avatar
unknown
plain_text
4 years ago
1.2 kB
3
Indexable
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]

[CreateAssetMenu(fileName = "New Card", menuName = "Card")]
public class Card : ScriptableObject
{

    public int id;
    public string cardname;
    public int cost;
    public int attack;
    public int health;
    public string description;
    public Sprite artworkImage;
    public Abilities abilities;
    
    public Card()
    {

    }

    public Card(int Id, string Name, int Cost, int Attack, int Health, string Description, Sprite Artwork, Abilities Abilities)
    {
        id = Id;
        cardname = Name;
        cost = Cost;
        attack = Attack;
        health = Health;
        description = Description;
        artworkImage = Artwork;
        abilities = Abilities;
    }
}
[Serializable]
public class Abilities
{
    public bool taunt;
    public bool charge;
    public bool dealDamage;
    public int damage;


    public Abilities(bool Taunt, bool Charge, bool DealDamage, int Damage)
    {
        taunt = Taunt;
        charge = Charge;
        dealDamage = DealDamage;
        damage = Damage;
    }
}
Editor is loading...