예제 #1
0
    public void UpdateCharacterParam()
    {
        //プレイヤーのExpPoint表示
        UnusedExpPoint.text = "Unused ExpPoint: " + PlayerData.unusedExpPoints;

        //キャラクタレベル情報
        CharLevel.text    = "Lv: " + _charData.Level;
        CharExpPoint.text = "Exp: " + _charData.CurrentExp;
        CharAtkPoint.text = "Atk: " + _charData.CrntAtk();

        CharGunAtkPoint.text = "GUN: Not Equiped";
        if (!string.IsNullOrEmpty(_charData.GunID))
        {
//			GunData gunData = GunDataTableObject.Instance.Table.All.FirstOrDefault (tmpData => tmpData.ID == _charData.GunID);
            GunData gunData = GunDataTableObject.Instance.GetParams(_charData.GunID);
            CharGunAtkPoint.text = "GUN: x" + gunData.Damage;
        }

        CharSwdAtkPoint.text = "SWD: Not Equiped";
        if (!string.IsNullOrEmpty(_charData.SwordID))
        {
            SwordData swordData = SwordDataTableObject.Instance.Table.All.FirstOrDefault(tmpData => tmpData.ID == _charData.SwordID);
            CharSwdAtkPoint.text = "SWD: x" + swordData.Damage;
        }
    }
예제 #2
0
    public override void OnInspectorGUI()
    {
//		InitCsvDatas ();

        AbstractCharacterObject charaObj = target as AbstractCharacterObject;
        CharaData charaData = charaObj.charaData;

        EditorGUILayout.LabelField("体力(現在/最大)");
        EditorGUILayout.BeginHorizontal();
        charaData.hpCrnt = EditorGUILayout.FloatField(charaData.hpCrnt, GUILayout.Width(48));
        charaData.HpBase = EditorGUILayout.FloatField(charaData.HpBase, GUILayout.Width(48));
        EditorGUILayout.EndHorizontal();

        EditorGUILayout.LabelField("攻撃力(最小/最大)");
        EditorGUILayout.BeginHorizontal();
        charaData.MinAtk = EditorGUILayout.FloatField(charaData.MinAtk, GUILayout.Width(48));
        charaData.MaxAtk = EditorGUILayout.FloatField(charaData.MaxAtk, GUILayout.Width(48));
        EditorGUILayout.FloatField(charaData.CrntAtk(), GUILayout.Width(48));
        EditorGUILayout.EndHorizontal();
    }
예제 #3
0
 public static void DisplayCharData(CharaData charaData)
 {
     Debug.LogError(
         "ID: " + charaData.ID + "\n" +
         "Rarity: " + charaData.Rarity + "\n" +
         "Level: " + charaData.Level + "\n" +
         "CrntHP/BaseHP: " + charaData.hpCrnt + "/" + charaData.HpBase + "\n" +
         "MinAtk/MaxAtk(CrntAtk): " + charaData.MinAtk + "/" + charaData.MaxAtk + "(" + charaData.CrntAtk() + ")" + "\n"
         );
 }