Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdea3808

Browse files
committed
优化初始化
1 parent105ed25 commitdea3808

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

‎Assets/NoSLoofah_BuffSystem/BuffSystem/Base/DataStructure/BuffCollection.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ namespace NoSLoofah.BuffSystem
99
[CreateAssetMenu(fileName="BFcollection",menuName="BFcollection")]
1010
publicclassBuffCollection:ScriptableObject
1111
{
12-
privateintsize=20;
13-
[HideInInspector]publicList<Buff>buffList=newList<Buff>();
12+
[SerializeField]privateintsize=20;
13+
[HideInInspector]publicList<Buff>buffList=newList<Buff>();
1414
publicintSize=>size;
1515
/// <summary>
1616
/// 修改最大Buff数量

‎Assets/NoSLoofah_BuffSystem/BuffSystem/Data/BuffData/BuffCollection.asset‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ MonoBehaviour:
1212
m_Script:{fileID: 11500000, guid: 5b0cf67308801014c82c5363a042523e, type: 3}
1313
m_Name:BuffCollection
1414
m_EditorClassIdentifier:
15+
size:30
1516
buffList:
1617
-{fileID: 11400000, guid: 6b22d7359afb5eb4990addc1ea716790, type: 2}
1718
-{fileID: 11400000, guid: 56aec3fde4592b0438490a3a065979f2, type: 2}
@@ -33,3 +34,13 @@ MonoBehaviour:
3334
-{fileID: 0}
3435
-{fileID: 0}
3536
-{fileID: 0}
37+
-{fileID: 0}
38+
-{fileID: 0}
39+
-{fileID: 0}
40+
-{fileID: 0}
41+
-{fileID: 0}
42+
-{fileID: 0}
43+
-{fileID: 0}
44+
-{fileID: 0}
45+
-{fileID: 0}
46+
-{fileID: 11400000, guid: 1cdcffd9e8ed19e42924b0b2daf05d18, type: 2}

‎Assets/NoSLoofah_BuffSystem/Example/Scripts/CustomBuff/Buff_Fragile.cs‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ public override void OnBuffDestroy()
1414
}
1515

1616
publicoverridevoidOnBuffModifyLayer(intchange)
17-
{
18-
Debug.Log(targetEntity);
17+
{
1918
targetEntity.ModifyDamageMultiplier(hurtIncreaseRate*change);
2019
}
2120

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp