예제 #1
0
 /// <summary>
 /// 属性を設定
 /// </summary>
 public void SetAttribute(App.Attribute attribute)
 {
     this.Attribute             = attribute;
     this.spriteRenderer.sprite = Sprites[this.Attribute];
 }
예제 #2
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public FireAttributeAction(Player owner, App.Attribute attribute) : base(owner)
 {
     this.attribute = attribute;
 }
예제 #3
0
        /// <summary>
        /// 使用MP
        /// </summary>
        private void UseMpField(string name, App.Attribute attribute)
        {
            int mp = EditorGUILayout.IntField(name, config.GetUseMp(attribute));

            config.SetUseMp(attribute, mp);
        }
예제 #4
0
 /// <summary>
 /// 使用MPを設定
 /// </summary>
 public void SetUseMp(App.Attribute attribute, int mp)
 {
     this.useMp[(int)attribute] = mp;
 }
예제 #5
0
 /// <summary>
 /// 使用MPを取得
 /// </summary>
 public int GetUseMp(App.Attribute attribute)
 {
     return(this.useMp[(int)attribute]);
 }
예제 #6
0
 /// <summary>
 /// 最大MPを設定
 /// </summary>
 public void SetMaxMp(App.Attribute attribute, int mp)
 {
     this.maxMp[(int)attribute] = mp;
 }
예제 #7
0
 /// <summary>
 /// 最大MPを取得
 /// </summary>
 public int GetMaxMp(App.Attribute attribute)
 {
     return(this.maxMp[(int)attribute]);
 }