コード例 #1
0
    private void Start()
    {
        Mgr = GameObject.FindGameObjectWithTag("BattleManager").GetComponent <BattleManager>();

        KeyText.text = InputExt.ToPrettyString(Key, Modifier);

        Ability = Mgr.Player.GetAbility(AbilityIndex);
        if (HasAbility)
        {
            SpellText.text     = Ability.Name;
            SpellImage.enabled = true;
            SpellImage.sprite  = Resources.Load <Sprite>(Ability.ImagePath);
        }
        else
        {
            SpellText.text     = "";
            SpellImage.enabled = false;
        }

        CDMask.fillAmount = 0;
    }