// Start is called before the first frame update void Start() { cardImage = this.gameObject.GetComponent <Image>(); ColorManager = FindObjectOfType <colorManager>(); curStamina = baseStamina; curAttack = baseAttack; curArmor = baseArmor; curHp = baseHp; atk.text = curAttack.ToString(); def.text = curArmor.ToString(); hp.text = curHp.ToString(); UpdateCardColor(0); }
void Awake() { if (Instance != null && Instance != this) { Destroy(gameObject); return; } else { Instance = this; txtAlpha = _txtAlpha; Bill = bill; Anna = anna; Doug = doug; PlayerPrefs.SetString(system, defaultColor); } }