/// <summary>
 /// 選ばれた時の処理
 /// </summary>
 public void chosen()
 {
     Debug.Log("character " + character.getName());
     //デバッグ
     character.healed(1, Skill.ActiveSkillParameters.HealSkillAttribute.HP_HEAL);
     window.targetChosen(character);
 }
Exemple #2
0
 public void use(IPlayable user)
 {
     Debug.Log("into use " + user.getHp());
     user.healed(HEAL, ATTRIBUTE);
     Debug.Log("outto use " + user.getHp());
     observer.usedItem();
 }
        /// <summary>
        /// 初期設定を行います
        /// </summary>
        /// <param name="character">表示するキャラクター</param>
        /// <param name="window">元となるウィンドウ</param>
        public void setState(IPlayable character, MenuUseWindow window)
        {
            this.character = character;
            this.window    = window;

            Debug.Log("character " + character.getName());
            //デバッグ
            character.healed(1, Skill.ActiveSkillParameters.HealSkillAttribute.HP_HEAL);

            nameText.text = character.getName();
        }