Пример #1
0
    // 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);
    }
Пример #2
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);
        }
    }
Пример #3
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);
        }
    }