This commit is contained in:
liuliang 2025-01-08 18:48:51 +08:00
commit 78e3511841
23 changed files with 12310 additions and 209 deletions

View File

@ -1,27 +1,31 @@
{
"M_H_001": {
"M_H_001_S_1": {
"S_1": {
"1": {
"Range":2
"Range": 2
},
"2": {
"DamageBuff": 0.15
},
"3": {
"SkillList": ["skill_0"],
"SkillList": [
"skill_0"
],
"Range": -1
},
"4": {
"DamageBuff": 0.35
"DamageBuff": 0.35
},
"5": {
"AttackCooldown": -0.5,
"AttackContinues":-0.5
"AttackContinues": -0.5
}
},
"M_H_001_S_2": {
"S_2": {
"1": {
"numberOfBullets":3,
"SkillList": [
"skill_1"
],
"DamageBuff": -0.5
},
"2": {
@ -42,30 +46,30 @@
}
}
},
"M_S_002": {
"M_H_002": {
"S_1": {
"1": {
"Range":2
"AttackCooldown": -0.25
},
"2": {
"DamageBuff": 0.15
},
"3": {
"SkillList": ["skill_0"],
"Range": -1
"speedOfBullets": 0.15,
"AttackCooldown": 0.05
},
"4": {
"DamageBuff": 0.35
"DamageBuff": 0.35
},
"5": {
"AttackCooldown": -0.5,
"AttackContinues":-0.5
"speedOfBullets": 0.3,
"AttackCooldown": 0.05
}
},
"S_2": {
"1": {
"SkillList": [
"skill_1"
"0"
],
"DamageBuff": -0.5
},
@ -73,17 +77,354 @@
"DamageBuff": 0.15
},
"3": {
"DamageOfBig": 0.3,
"Range": -1
},
"4": {
"DamageBuff": 0.35
},
"5": {
"SkillList": [
"0"
],
"Range": -1
}
}
},
"M_S_001": {
"S_1": {
"1": {
"AttackCooldown": -0.25
},
"2": {
"DamageBuff": 0.15
},
"3": {
"speedOfBullets": 0.2,
"Range": -1
},
"4": {
"DamageBuff": 0.35
},
"5": {
"DamageOfSlow": 0.3,
"AttackCooldown": 0.05
}
},
"S_2": {
"1": {
"DamageOfSky": 0.25
},
"2": {
"DamageBuff": 0.15
},
"3": {
"AttackCooldown": -0.1
},
"4": {
"DamageBuff": 0.35
},
"5": {
"DamageOfMin": 0.25,
"Range": -1
}
}
},
"M_S_002": {
"S_1": {
"1": {
"SkillList": [
"0"
]
},
"2": {
"DamageBuff": 0.15
},
"3": {
"DamageBuff": 0.3,
"AttackCooldown": 0.05
},
"4": {
"DamageBuff": 0.35
},
"5": {
"AttackCooldown": 0.3,
"AttackContinues": 0.5
"numberOfBullets": 1,
"AttackCooldown": 0.05
}
},
"S_2": {
"1": {
"DamageOfMin": 0.25
},
"2": {
"DamageBuff": 0.15
},
"3": {
"AttackCooldown": -0.25,
"Range": -1
},
"4": {
"DamageBuff": 0.35
},
"5": {
"DamageOfMin": 0.25,
"Range": -1
}
}
},
"M_S_003": {
"S_1": {
"1": {
"Range": 1
},
"2": {
"DamageBuff": 0.15
},
"3": {
"AttackCooldown": 0.1
},
"4": {
"DamageBuff": 0.35
},
"5": {
"numberOfBullets": 2,
"AttackCooldown": 0.05
}
},
"S_2": {
"1": {
"DamageBuff": 0.2
},
"2": {
"DamageBuff": 0.15
},
"3": {
"AttackContinues": -0.25,
"AttackCooldown": 0.05
},
"4": {
"DamageBuff": 0.35
},
"5": {
"Damage": 0.5,
"AttackCooldown": 0.05
}
}
},
"M_T_001": {
"S_1": {
"1": {
"SkillList": [
"0"
]
},
"2": {
"DamageBuff": 0.15
},
"3": {
"SkillList": [
"0"
],
"Range": -1
},
"4": {
"DamageBuff": 0.35
},
"5": {
"SkillList": [
"0"
],
"Range": -1
}
},
"S_2": {
"1": {
"speedOfBullets": 0.2
},
"2": {
"DamageBuff": 0.15
},
"3": {
"Range": 2,
"AttackCooldown": 0.05
},
"4": {
"DamageBuff": 0.35
},
"5": {
"SkillList": [
"0"
],
"AttackCooldown": 0.05
}
}
},
"M_T_002": {
"S_1": {
"1": {
"DamageOfSky": 0.3
},
"2": {
"DamageBuff": 0.15
},
"3": {
"AttackCooldown": -0.25,
"SkillList": [
"0"
],
"Range": -1
},
"4": {
"DamageBuff": 0.35
},
"5": {
"speedOfBullets": 0.25,
"Range": -1
}
},
"S_2": {
"1": {
"DamageOfland": 0.3
},
"2": {
"DamageBuff": 0.15
},
"3": {
"AttackCooldown": 0.05,
"SkillList": [
"0"
]
},
"4": {
"DamageBuff": 0.35
},
"5": {
"DamageOfSlow": 0.2,
"AttackCooldown": 0.05
}
}
},
"M_M_001": {
"S_1": {
"1": {
"AttackCooldown": -0.25
},
"2": {
"DamageBuff": 0.15
},
"3": {
"speedOfBullets": -0.25,
"AttackCooldown": 0.05
},
"4": {
"DamageBuff": 0.35
},
"5": {
"CriticalRate": 0.2,
"DamageBuff": 0.05
}
},
"S_2": {
"1": {
"DamageOfMin": 0.25
},
"2": {
"DamageBuff": 0.15
},
"3": {
"DamageOfMin": 0.4,
"AttackCooldown": 0.05
},
"4": {
"DamageBuff": 0.35
},
"5": {
"CriticalRate": 0.2,
"Range": -1
}
}
},
"M_M_002": {
"S_1": {
"1": {
"AttackCooldown": -0.25
},
"2": {
"DamageBuff": 0.15
},
"3": {
"Range": 2,
"AttackCooldown": 0.05
},
"4": {
"DamageBuff": 0.35
},
"5": {
"speedOfBullets": 0.2,
"AttackCooldown": 0.05
}
},
"S_2": {
"1": {
"numberOfBullets": 0.25,
"SkillList": [
"0"
]
},
"2": {
"DamageBuff": 0.15
},
"3": {
"DamageOfMin": 0.25,
"AttackCooldown": 0.05
},
"4": {
"DamageBuff": 0.35
},
"5": {
"DamageOfMin": 0.4,
"AttackCooldown": 0.05
}
}
},
"M_J_001": {
"S_1": {
"1": {
"SkillList": [
"0"
]
},
"2": {
"DamageBuff": 0.15
},
"3": {
"numberOfBullets": 1,
"speedOfBullets": -0.1
},
"4": {
"DamageBuff": 0.35
},
"5": {
"DamageBuff": 0.3,
"speedOfBullets": -0.1
}
},
"S_2": {
"1": {
"speedOfBullets": 0.25
},
"2": {
"DamageBuff": 0.15
},
"3": {
"numberOfBullets": 1,
"speedOfBullets": -1
},
"4": {
"DamageBuff": 0.35
},
"5": {
"speedOfBullets": 0.4
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 78cd41adc21af534ba57587f249ea712
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -419,7 +419,7 @@ GameObject:
- component: {fileID: 8433650274028726420}
- component: {fileID: -3836672401185760439}
- component: {fileID: 1608620729910401442}
- component: {fileID: 4160285222230592655}
- component: {fileID: 2478240912148842105}
m_Layer: 0
m_Name: hhl
m_TagString: Player
@ -470,8 +470,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description:
id: M_H_002
Name: "\u706B\u840C\u5996-02"
camp: 0
@ -515,7 +514,7 @@ MonoBehaviour:
normalIndex: 0
isHit: 0
myTags: 0
mySkillUp: {fileID: 4160285222230592655}
mySkillUp: {fileID: 2478240912148842105}
IsDead: 0
HaveDieTime: 0
enemyId:
@ -574,7 +573,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
tower: {fileID: 0}
Tag: tower
--- !u!114 &4160285222230592655
--- !u!114 &2478240912148842105
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -583,11 +582,10 @@ MonoBehaviour:
m_GameObject: {fileID: 8433650275485930554}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7daf04d628022bd4aaac8e5b33e8d9b9, type: 3}
m_Script: {fileID: 11500000, guid: 8264f0a4afc0aa347bf9dad42df2617a, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description: "\u66F4\u65B0\u540E\u7684\u840C\u8000\uFF0C\uFF1A\u4F7F\u7528\u65B9\u6CD5xxxxxxxx"
role: {fileID: 8433650274028726420}
attack: {fileID: 7276635428522831207}
attackRange: 0

View File

@ -385,6 +385,7 @@ MonoBehaviour:
RunRange: 1.5
haveAddDamage: 0
AdddamageType: 1
BoomRange: 1
isAttack: 1
flag: 0
timer: 0
@ -418,7 +419,7 @@ GameObject:
- component: {fileID: 8433650274028726420}
- component: {fileID: -3836672401185760439}
- component: {fileID: 1608620729910401442}
- component: {fileID: 8914466325963836369}
- component: {fileID: 2427917370826210288}
m_Layer: 0
m_Name: jbf
m_TagString: Player
@ -469,8 +470,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description:
id: M_J_001
Name: "\u91D1\u840C\u5996-01"
camp: 0
@ -514,7 +514,7 @@ MonoBehaviour:
normalIndex: 0
isHit: 0
myTags: 0
mySkillUp: {fileID: 8914466325963836369}
mySkillUp: {fileID: 0}
IsDead: 0
HaveDieTime: 0
enemyId:
@ -573,7 +573,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
tower: {fileID: 0}
Tag: tower
--- !u!114 &8914466325963836369
--- !u!114 &2427917370826210288
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -582,11 +582,10 @@ MonoBehaviour:
m_GameObject: {fileID: 8433650275485930554}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 01f8800bc22567f4890b6a945671d07b, type: 3}
m_Script: {fileID: 11500000, guid: 8264f0a4afc0aa347bf9dad42df2617a, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description: "\u66F4\u65B0\u540E\u7684\u840C\u8000\uFF0C\uFF1A\u4F7F\u7528\u65B9\u6CD5xxxxxxxx"
role: {fileID: 8433650274028726420}
attack: {fileID: 7276635428522831207}
attackRange: 0

View File

@ -379,9 +379,17 @@ MonoBehaviour:
AttackStayTime: 0
Target: {fileID: 0}
characterClick: {fileID: 8274433498955506092}
Angle: 30
splitNum: 2
SplitAttack: 10
RunRange: 3
haveAddDamage: 0
AdddamageType: 1
BoomRange: 1
isAttack: 1
flag: 0
timer: 0
bulletLengthAdd: 0
--- !u!58 &1338343970434073545
CircleCollider2D:
m_ObjectHideFlags: 0
@ -411,7 +419,7 @@ GameObject:
- component: {fileID: 8433650274028726420}
- component: {fileID: -3836672401185760439}
- component: {fileID: 1608620729910401442}
- component: {fileID: 3258498600701209889}
- component: {fileID: 2602614250801625208}
m_Layer: 0
m_Name: mkl
m_TagString: Player
@ -462,12 +470,12 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description:
id: M_M_001
Name: "\u6728\u840C\u5996-01"
camp: 0
hp: 100
maxHp: 100
dieIndex: -1
Hpfiil: {fileID: 0}
HpfiilYello: {fileID: 0}
@ -486,6 +494,7 @@ MonoBehaviour:
CritRate: 0.065
CriticalHitRateBonus: 0
killNum: 0
isMoFa: 0
gold: 10
MaxAttack: 6
MinAttack: 4
@ -505,22 +514,25 @@ MonoBehaviour:
normalIndex: 0
isHit: 0
myTags: 0
mySkillUp: {fileID: 3258498600701209889}
mySkillUp: {fileID: 2602614250801625208}
IsDead: 0
HaveDieTime: 0
enemyId:
bulletAttackType: 0
moveSpeed: 0
MengyaoSprite: {fileID: 21300000, guid: 602511914339bfa4896fd45f36054865, type: 3}
SkillSprites:
- {fileID: 21300000, guid: 0adb087419dd674498495bad0175fc85, type: 3}
- {fileID: 21300000, guid: d899198e4c5678843aa5f2143bbc226f, type: 3}
harmNumber: 0
isSlowed: 0
Defense: 0
DamageToPlayer: 0
HealthPerLevel: 0
DefensePerLevel: 0
elementType: 1
defenseType: 0
index: 0
--- !u!61 &-3836672401185760439
BoxCollider2D:
m_ObjectHideFlags: 0
@ -561,7 +573,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
tower: {fileID: 0}
Tag: tower
--- !u!114 &3258498600701209889
--- !u!114 &2602614250801625208
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -570,11 +582,10 @@ MonoBehaviour:
m_GameObject: {fileID: 8433650275485930554}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: cf06a056a8f837740a4fca76de3a5ed5, type: 3}
m_Script: {fileID: 11500000, guid: 8264f0a4afc0aa347bf9dad42df2617a, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description: "\u66F4\u65B0\u540E\u7684\u840C\u8000\uFF0C\uFF1A\u4F7F\u7528\u65B9\u6CD5xxxxxxxx"
role: {fileID: 8433650274028726420}
attack: {fileID: 7276635428522831207}
attackRange: 0
@ -589,3 +600,4 @@ MonoBehaviour:
DamageOfland: 0
DamageOfBig: 0
DamageOfMin: 0
DamageOfSlow: 0

View File

@ -382,9 +382,14 @@ MonoBehaviour:
Angle: 30
splitNum: 2
SplitAttack: 10
RunRange: 3
haveAddDamage: 0
AdddamageType: 1
BoomRange: 1
isAttack: 1
flag: 0
timer: 0
bulletLengthAdd: 0
--- !u!58 &1338343970434073545
CircleCollider2D:
m_ObjectHideFlags: 0
@ -414,7 +419,7 @@ GameObject:
- component: {fileID: 8433650274028726420}
- component: {fileID: -3836672401185760439}
- component: {fileID: 1608620729910401442}
- component: {fileID: 8431660328256440042}
- component: {fileID: 4515182165523243159}
m_Layer: 0
m_Name: mmg
m_TagString: Player
@ -465,8 +470,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description:
id: M_M_002
Name: "\u6728\u840C\u5996-02"
camp: 0
@ -490,6 +494,7 @@ MonoBehaviour:
CritRate: 0.065
CriticalHitRateBonus: 0
killNum: 0
isMoFa: 0
gold: 10
MaxAttack: 7
MinAttack: 5
@ -509,10 +514,11 @@ MonoBehaviour:
normalIndex: 0
isHit: 0
myTags: 0
mySkillUp: {fileID: 8431660328256440042}
mySkillUp: {fileID: 4515182165523243159}
IsDead: 0
HaveDieTime: 0
enemyId:
bulletAttackType: 0
moveSpeed: 0
MengyaoSprite: {fileID: 21300000, guid: 602511914339bfa4896fd45f36054865, type: 3}
SkillSprites:
@ -526,6 +532,7 @@ MonoBehaviour:
DefensePerLevel: 0
elementType: 1
defenseType: 0
index: 0
--- !u!61 &-3836672401185760439
BoxCollider2D:
m_ObjectHideFlags: 0
@ -566,7 +573,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
tower: {fileID: 0}
Tag: tower
--- !u!114 &8431660328256440042
--- !u!114 &4515182165523243159
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -575,11 +582,10 @@ MonoBehaviour:
m_GameObject: {fileID: 8433650275485930554}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4343d5a9d3f9c4246bb691da4aaa144d, type: 3}
m_Script: {fileID: 11500000, guid: 8264f0a4afc0aa347bf9dad42df2617a, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description: "\u66F4\u65B0\u540E\u7684\u840C\u8000\uFF0C\uFF1A\u4F7F\u7528\u65B9\u6CD5xxxxxxxx"
role: {fileID: 8433650274028726420}
attack: {fileID: 7276635428522831207}
attackRange: 0

View File

@ -379,9 +379,17 @@ MonoBehaviour:
AttackStayTime: 0
Target: {fileID: 0}
characterClick: {fileID: 4417703037588761391}
Angle: 30
splitNum: 2
SplitAttack: 10
RunRange: 3
haveAddDamage: 0
AdddamageType: 1
BoomRange: 1
isAttack: 1
flag: 0
timer: 0
bulletLengthAdd: 0
--- !u!58 &1338343970434073545
CircleCollider2D:
m_ObjectHideFlags: 0
@ -411,7 +419,7 @@ GameObject:
- component: {fileID: 8433650274028726420}
- component: {fileID: -3836672401185760439}
- component: {fileID: 1608620729910401442}
- component: {fileID: 206052671066122143}
- component: {fileID: 3423872827547219445}
m_Layer: 0
m_Name: qi_e
m_TagString: Player
@ -462,12 +470,12 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description:
id: M_S_001
Name: "\u6C34\u840C\u5996-01"
camp: 0
hp: 100
maxHp: 100
dieIndex: -1
Hpfiil: {fileID: 0}
HpfiilYello: {fileID: 0}
@ -486,6 +494,7 @@ MonoBehaviour:
CritRate: 0.05
CriticalHitRateBonus: 0
killNum: 0
isMoFa: 0
gold: 10
MaxAttack: 10
MinAttack: 7
@ -505,22 +514,25 @@ MonoBehaviour:
normalIndex: 0
isHit: 0
myTags: 0
mySkillUp: {fileID: 206052671066122143}
mySkillUp: {fileID: 3423872827547219445}
IsDead: 0
HaveDieTime: 0
enemyId:
bulletAttackType: 0
moveSpeed: 0
MengyaoSprite: {fileID: 21300000, guid: e42ec8eaea1c0434d9151c05ab649b49, type: 3}
SkillSprites:
- {fileID: 21300000, guid: cfd21a22d56637e44b11ed37c12db481, type: 3}
- {fileID: 21300000, guid: 1ccc75d4e69b889498b2e30ca0e77bb1, type: 3}
harmNumber: 0
isSlowed: 0
Defense: 0
DamageToPlayer: 0
HealthPerLevel: 0
DefensePerLevel: 0
elementType: 2
defenseType: 0
index: 0
--- !u!61 &-3836672401185760439
BoxCollider2D:
m_ObjectHideFlags: 0
@ -561,7 +573,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
tower: {fileID: 0}
Tag: tower
--- !u!114 &206052671066122143
--- !u!114 &3423872827547219445
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -570,11 +582,10 @@ MonoBehaviour:
m_GameObject: {fileID: 8433650275485930554}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0f2e2ca90067ba742b2ebdc8e467e4bd, type: 3}
m_Script: {fileID: 11500000, guid: 8264f0a4afc0aa347bf9dad42df2617a, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description: "\u66F4\u65B0\u540E\u7684\u840C\u8000\uFF0C\uFF1A\u4F7F\u7528\u65B9\u6CD5xxxxxxxx"
role: {fileID: 8433650274028726420}
attack: {fileID: 7276635428522831207}
attackRange: 0
@ -589,3 +600,4 @@ MonoBehaviour:
DamageOfland: 0
DamageOfBig: 0
DamageOfMin: 0
DamageOfSlow: 0

View File

@ -419,7 +419,7 @@ GameObject:
- component: {fileID: 8433650274028726420}
- component: {fileID: -3836672401185760439}
- component: {fileID: 1608620729910401442}
- component: {fileID: 5691593194522339925}
- component: {fileID: 3515768272336358004}
m_Layer: 0
m_Name: ssm
m_TagString: Player
@ -470,8 +470,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description:
id: M_S_003
Name: "\u6C34\u840C\u5996-03"
camp: 0
@ -484,21 +483,21 @@ MonoBehaviour:
_Canvas: {fileID: 0}
spriteRenderers: {fileID: 0}
HurtDirectin: 0
Quality: 0
Elements: 3
Info: "\u5C04\u51FA\u51B0\u51BB\u5B50\u5F39\uFF0C\u547D\u4E2D\u540E\u4F1A\u964D\u4F4E\u654C\u4EBA\u79FB\u52A8\u901F\u5EA6\u3002"
Quality: 1
Elements: 2
Info: "\u4F1A\u5BF9\u9760\u8FD1\u7684\u654C\u4EBA\u55B7\u51FA\u6BD2\u96FE\uFF0C\u8BA9\u654C\u4EBA\u4E2D\u6BD2\u6301\u7EED\u53D7\u4F24\u3002"
SkillId: 3001
AttackType: 0
AttackType: 3
AttackActionType: 0
AttackRange: 5
AttackRange: 2
AttackCD: 1
CritRate: 0.05
CritRate: 0.025
CriticalHitRateBonus: 0
killNum: 0
isMoFa: 0
gold: 10
MaxAttack: 10
MinAttack: 7
MaxAttack: 8
MinAttack: 8
isGoodDamege: 0
physicalArmor: 10
magicArmor: 5
@ -515,7 +514,7 @@ MonoBehaviour:
normalIndex: 0
isHit: 0
myTags: 0
mySkillUp: {fileID: 5691593194522339925}
mySkillUp: {fileID: 3515768272336358004}
IsDead: 0
HaveDieTime: 0
enemyId:
@ -574,7 +573,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
tower: {fileID: 0}
Tag: tower
--- !u!114 &5691593194522339925
--- !u!114 &3515768272336358004
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -583,11 +582,10 @@ MonoBehaviour:
m_GameObject: {fileID: 8433650275485930554}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: be1afb412b17ae74a9039a00d02170c6, type: 3}
m_Script: {fileID: 11500000, guid: 8264f0a4afc0aa347bf9dad42df2617a, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description: "\u66F4\u65B0\u540E\u7684\u840C\u8000\uFF0C\uFF1A\u4F7F\u7528\u65B9\u6CD5xxxxxxxx"
role: {fileID: 8433650274028726420}
attack: {fileID: 7276635428522831207}
attackRange: 0

View File

@ -380,9 +380,16 @@ MonoBehaviour:
Target: {fileID: 0}
characterClick: {fileID: 4417703037588761391}
Angle: 30
splitNum: 2
SplitAttack: 10
RunRange: 3
haveAddDamage: 0
AdddamageType: 1
BoomRange: 1
isAttack: 1
flag: 0
timer: 0
bulletLengthAdd: 0
--- !u!58 &1338343970434073545
CircleCollider2D:
m_ObjectHideFlags: 0
@ -412,7 +419,7 @@ GameObject:
- component: {fileID: 8433650274028726420}
- component: {fileID: -3836672401185760439}
- component: {fileID: 1608620729910401442}
- component: {fileID: 2402239628321794857}
- component: {fileID: 5367364036186107134}
m_Layer: 0
m_Name: ssy
m_TagString: Player
@ -463,8 +470,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description:
id: M_S_002
Name: "\u6C34\u840C\u5996-02"
camp: 0
@ -488,6 +494,7 @@ MonoBehaviour:
CritRate: 0.05
CriticalHitRateBonus: 0
killNum: 0
isMoFa: 0
gold: 10
MaxAttack: 8
MinAttack: 5
@ -507,10 +514,11 @@ MonoBehaviour:
normalIndex: 0
isHit: 0
myTags: 0
mySkillUp: {fileID: 2402239628321794857}
mySkillUp: {fileID: 0}
IsDead: 0
HaveDieTime: 0
enemyId:
bulletAttackType: 0
moveSpeed: 0
MengyaoSprite: {fileID: 21300000, guid: 8e7daa6a68986b944aae00387aabf4ea, type: 3}
SkillSprites:
@ -524,6 +532,7 @@ MonoBehaviour:
DefensePerLevel: 0
elementType: 2
defenseType: 0
index: 0
--- !u!61 &-3836672401185760439
BoxCollider2D:
m_ObjectHideFlags: 0
@ -564,7 +573,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
tower: {fileID: 0}
Tag: tower
--- !u!114 &2402239628321794857
--- !u!114 &5367364036186107134
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -573,11 +582,10 @@ MonoBehaviour:
m_GameObject: {fileID: 8433650275485930554}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: db9f9a8d581a5d84cabe3e2a10ee6b88, type: 3}
m_Script: {fileID: 11500000, guid: 8264f0a4afc0aa347bf9dad42df2617a, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description: "\u66F4\u65B0\u540E\u7684\u840C\u8000\uFF0C\uFF1A\u4F7F\u7528\u65B9\u6CD5xxxxxxxx"
role: {fileID: 8433650274028726420}
attack: {fileID: 7276635428522831207}
attackRange: 0

View File

@ -108,7 +108,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2622601509586677983}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0.236, y: 0.202, z: 0}
m_LocalPosition: {x: -0.43, y: -0.35, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
@ -221,8 +221,8 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 7939695578342722628}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 1.7837, y: 0.2, z: 0}
m_LocalScale: {x: 2.1912572, y: 1.7881608, z: 0}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 0}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 8433650275485930555}
@ -269,8 +269,8 @@ SpriteRenderer:
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 5437a302a2f98684992c68de0f20ceab, type: 3}
m_Color: {r: 1, g: 0.05694356, b: 0, a: 1}
m_Sprite: {fileID: 21300000, guid: dcb3a731cfcc70c4ab418922d45ec4a4, type: 3}
m_Color: {r: 0, g: 0.9860158, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 0
@ -290,8 +290,8 @@ GameObject:
m_Component:
- component: {fileID: 8433650274046349754}
- component: {fileID: 8433650274046349755}
- component: {fileID: 9159632203889506884}
- component: {fileID: 2079699887508608465}
- component: {fileID: 1887114386304013815}
m_Layer: 0
m_Name: Circle
m_TagString: Untagged
@ -355,7 +355,7 @@ SpriteRenderer:
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 492e5984b518a80458cf575c0b57335c, type: 3}
m_Sprite: {fileID: 21300000, guid: c3ac660a8d9f4d14e889bd9ec0ac5012, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
@ -366,19 +366,6 @@ SpriteRenderer:
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!114 &9159632203889506884
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650274046349753}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 50e7cde86474cbc409c0496db47dfe4f, type: 3}
m_Name:
m_EditorClassIdentifier:
attack: {fileID: 7276635428522831207}
--- !u!95 &2079699887508608465
Animator:
serializedVersion: 5
@ -400,6 +387,19 @@ Animator:
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorStateOnDisable: 0
m_WriteDefaultValuesOnDisable: 0
--- !u!114 &1887114386304013815
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8433650274046349753}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 7d7d3146a1294f044892ae91ba6c7cd6, type: 3}
m_Name:
m_EditorClassIdentifier:
attack: {fileID: 7276635428522831207}
--- !u!1 &8433650274814453344
GameObject:
m_ObjectHideFlags: 0
@ -410,7 +410,7 @@ GameObject:
m_Component:
- component: {fileID: 8433650274814453345}
- component: {fileID: 7276635428522831207}
- component: {fileID: 7445357650989261112}
- component: {fileID: 4867786441724593875}
m_Layer: 0
m_Name: attack
m_TagString: Untagged
@ -445,20 +445,20 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 90e9cd2fc0a74084fbf1a89015db94a9, type: 3}
m_Name:
m_EditorClassIdentifier:
bulletPrefab: {fileID: 492886037456412146, guid: 3978938c41d11184ea1ce858f4d82dbe, type: 3}
bulletPrefab: {fileID: 6998733212867311352, guid: 78cd41adc21af534ba57587f249ea712, type: 3}
role: {fileID: 8433650274028726420}
damageTyp: 2
attackCooldown: 10
bulltes: []
animator: {fileID: 0}
animator: {fileID: 2079699887508608465}
fireAnis: []
BulletStartPos: {fileID: 7894364588234692947}
AttackSpeed: 1
direction: {x: 0, y: 0}
roleBulletSpeedAdd: 0
BulletNumber: 1
attackCollider: {fileID: 0}
attackColliderBox: {fileID: 7445357650989261112}
attackCollider: {fileID: 4867786441724593875}
attackColliderBox: {fileID: 0}
attackRangeSprite: {fileID: 7065953252221226447}
AttackStayTime: 2
Target: {fileID: 0}
@ -474,8 +474,8 @@ MonoBehaviour:
flag: 0
timer: 0
bulletLengthAdd: 0
--- !u!61 &7445357650989261112
BoxCollider2D:
--- !u!58 &4867786441724593875
CircleCollider2D:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
@ -487,19 +487,9 @@ BoxCollider2D:
m_IsTrigger: 1
m_UsedByEffector: 0
m_UsedByComposite: 0
m_Offset: {x: 0, y: 0.2}
m_SpriteTilingProperty:
border: {x: 0, y: 0, z: 0, w: 0}
pivot: {x: 0, y: 0}
oldSize: {x: 0, y: 0}
newSize: {x: 0, y: 0}
adaptiveTilingThreshold: 0
drawMode: 0
adaptiveTiling: 0
m_AutoTiling: 0
m_Offset: {x: 0, y: 0}
serializedVersion: 2
m_Size: {x: 6, y: 1.1528659}
m_EdgeRadius: 0
m_Radius: 0.5
--- !u!1 &8433650275485930554
GameObject:
m_ObjectHideFlags: 0
@ -580,21 +570,21 @@ MonoBehaviour:
_Canvas: {fileID: 0}
spriteRenderers: {fileID: 0}
HurtDirectin: 0
Quality: 0
Quality: 1
Elements: 4
Info: "\u5411\u524D\u65B9\u55B7\u5C04\u7EB5\u54112\u683C\u8303\u56F4\u7684\u706B\u7130\uFF0C\u6301\u7EED\u653B\u51FB\u654C\u4EBA\u3002"
SkillId: 4001
AttackType: 0
Info: "\u80FD\u5730\u5E95\u53EC\u5524\u51FA\u5C16\u523A\u653B\u51FB\u4E00\u6761\u76F4\u7EBF\u4E0A\u7684\u654C\u4EBA"
SkillId: 3001
AttackType: 2
AttackActionType: 0
AttackRange: 2
AttackCD: 0.3
CritRate: 0.03
CriticalHitRateBonus: 0.25
AttackRange: 5
AttackCD: 2.5
CritRate: 0.05
CriticalHitRateBonus: 0
killNum: 0
isMoFa: 0
gold: 10
MaxAttack: 5
MinAttack: 4
MaxAttack: 6
MinAttack: 5
isGoodDamege: 0
physicalArmor: 10
magicArmor: 5

View File

@ -419,7 +419,7 @@ GameObject:
- component: {fileID: 8433650274028726420}
- component: {fileID: -3836672401185760439}
- component: {fileID: 1608620729910401442}
- component: {fileID: 793661412592447090}
- component: {fileID: 6493576832774463425}
m_Layer: 0
m_Name: txm
m_TagString: Player
@ -470,8 +470,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 1d85d2602d10e0b45820f1be35eda782, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description:
id: M_T_001
Name: "\u571F\u840C\u5996-01"
camp: 0
@ -515,7 +514,7 @@ MonoBehaviour:
normalIndex: 0
isHit: 0
myTags: 0
mySkillUp: {fileID: 793661412592447090}
mySkillUp: {fileID: 6493576832774463425}
IsDead: 0
HaveDieTime: 0
enemyId:
@ -574,7 +573,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
tower: {fileID: 0}
Tag: tower
--- !u!114 &793661412592447090
--- !u!114 &6493576832774463425
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
@ -583,11 +582,10 @@ MonoBehaviour:
m_GameObject: {fileID: 8433650275485930554}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 86e8e9ff089f20948a58bb7c69953871, type: 3}
m_Script: {fileID: 11500000, guid: 8264f0a4afc0aa347bf9dad42df2617a, type: 3}
m_Name:
m_EditorClassIdentifier:
retbutton: {fileID: 0}
ClosureObj: {fileID: 0}
description: "\u66F4\u65B0\u540E\u7684\u840C\u8000\uFF0C\uFF1A\u4F7F\u7528\u65B9\u6CD5xxxxxxxx"
role: {fileID: 8433650274028726420}
attack: {fileID: 7276635428522831207}
attackRange: 0

View File

@ -2574,10 +2574,10 @@ RectTransform:
m_Father: {fileID: 8646173537015180660}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 380.34, y: -174.5}
m_SizeDelta: {x: 264, y: 349}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &7609212775189386514
CanvasRenderer:
@ -2897,6 +2897,86 @@ MonoBehaviour:
m_EditorClassIdentifier:
mengyaoid: M_H_001
shuxing: 3
--- !u!1 &3368563909311837649
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 4370992526800103918}
- component: {fileID: 4142168318993948640}
- component: {fileID: 3334285923484077726}
m_Layer: 5
m_Name: Text (Legacy)
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &4370992526800103918
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3368563909311837649}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7581276514759857901}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 15.4549}
m_SizeDelta: {x: 234, y: 50.4553}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4142168318993948640
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3368563909311837649}
m_CullTransparentMesh: 1
--- !u!114 &3334285923484077726
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3368563909311837649}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_FontData:
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
m_FontSize: 30
m_FontStyle: 0
m_BestFit: 0
m_MinSize: 0
m_MaxSize: 40
m_Alignment: 4
m_AlignByGeometry: 0
m_RichText: 1
m_HorizontalOverflow: 0
m_VerticalOverflow: 0
m_LineSpacing: 1
m_Text: "\u91D1\u86FE"
--- !u!1 &3373468532689208845
GameObject:
m_ObjectHideFlags: 0
@ -3516,6 +3596,82 @@ MonoBehaviour:
m_EditorClassIdentifier:
mengyaoid: M_S_002
shuxing: 2
--- !u!1 &3944609732000725643
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1467898460017015414}
- component: {fileID: 422529692511921494}
- component: {fileID: 2965587176728696075}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1467898460017015414
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3944609732000725643}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1.2, y: 1.2, z: 1.2}
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 6179276292331245064}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 72, y: 88}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &422529692511921494
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3944609732000725643}
m_CullTransparentMesh: 1
--- !u!114 &2965587176728696075
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3944609732000725643}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 7da5a4f3915fa8244825164611a1abc0, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &3996458516254044511
GameObject:
m_ObjectHideFlags: 0
@ -4989,6 +5145,97 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_ShowMaskGraphic: 1
--- !u!1 &5146428981665141898
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 5175284810897161633}
- component: {fileID: 378904021612768853}
- component: {fileID: 7585519074394035988}
- component: {fileID: 2196391961883505606}
m_Layer: 5
m_Name: show
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &5175284810897161633
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5146428981665141898}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1788759639087524725}
m_Father: {fileID: 6179276292331245064}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 264, y: 349}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &378904021612768853
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5146428981665141898}
m_CullTransparentMesh: 1
--- !u!114 &7585519074394035988
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5146428981665141898}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 7d3f6c1dbe0fc184896b677f0b6ad28f, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &2196391961883505606
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5146428981665141898}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 31a19414c41e5ae4aae2af33fee712f6, type: 3}
m_Name:
m_EditorClassIdentifier:
m_ShowMaskGraphic: 1
--- !u!1 &5231458223169787392
GameObject:
m_ObjectHideFlags: 0
@ -5496,6 +5743,84 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &5848340264364254274
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 7581276514759857901}
- component: {fileID: 4334049176667961521}
- component: {fileID: 4028292994554467725}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &7581276514759857901
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5848340264364254274}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 4370992526800103918}
- {fileID: 1560116480986347512}
m_Father: {fileID: 1788759639087524725}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0}
m_AnchorMax: {x: 0.5, y: 0}
m_AnchoredPosition: {x: 0, y: 128}
m_SizeDelta: {x: 234, y: 81.366}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &4334049176667961521
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5848340264364254274}
m_CullTransparentMesh: 1
--- !u!114 &4028292994554467725
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5848340264364254274}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: 5a2005fb30b78cc4ab9f29e443f545a0, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &5946515235677264846
GameObject:
m_ObjectHideFlags: 0
@ -5853,6 +6178,144 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &6007163758189352878
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6179276292331245064}
- component: {fileID: 5429751683088901057}
- component: {fileID: 2094984975397829080}
- component: {fileID: 6759615461001335777}
- component: {fileID: 3002802795369297199}
m_Layer: 5
m_Name: card_12
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6179276292331245064
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6007163758189352878}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 1467898460017015414}
- {fileID: 5175284810897161633}
m_Father: {fileID: 8646173537342263721}
m_RootOrder: 10
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &5429751683088901057
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6007163758189352878}
m_CullTransparentMesh: 1
--- !u!114 &2094984975397829080
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6007163758189352878}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: cde4b27d82afac1458e296d4f9f9677f, type: 3}
m_Type: 0
m_PreserveAspect: 1
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &6759615461001335777
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6007163758189352878}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Navigation:
m_Mode: 3
m_WrapAround: 0
m_SelectOnUp: {fileID: 0}
m_SelectOnDown: {fileID: 0}
m_SelectOnLeft: {fileID: 0}
m_SelectOnRight: {fileID: 0}
m_Transition: 0
m_Colors:
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
m_ColorMultiplier: 1
m_FadeDuration: 0.1
m_SpriteState:
m_HighlightedSprite: {fileID: 0}
m_PressedSprite: {fileID: 0}
m_SelectedSprite: {fileID: 0}
m_DisabledSprite: {fileID: 0}
m_AnimationTriggers:
m_NormalTrigger: Normal
m_HighlightedTrigger: Highlighted
m_PressedTrigger: Pressed
m_SelectedTrigger: Selected
m_DisabledTrigger: Disabled
m_Interactable: 1
m_TargetGraphic: {fileID: 2094984975397829080}
m_OnClick:
m_PersistentCalls:
m_Calls: []
--- !u!114 &3002802795369297199
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6007163758189352878}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c64989b3a75e1d44e8692a17ba9c22ea, type: 3}
m_Name:
m_EditorClassIdentifier:
mengyaoid: M_T_003
shuxing: 4
--- !u!1 &6102249326092963074
GameObject:
m_ObjectHideFlags: 0
@ -6067,6 +6530,82 @@ MonoBehaviour:
m_EditorClassIdentifier:
mengyaoid: M_M_001
shuxing: 1
--- !u!1 &6252837202770272937
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1560116480986347512}
- component: {fileID: 1412467139715207889}
- component: {fileID: 7424276673090632930}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1560116480986347512
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6252837202770272937}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 7581276514759857901}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: -85.9, y: 214.3}
m_SizeDelta: {x: 40, y: 40}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &1412467139715207889
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6252837202770272937}
m_CullTransparentMesh: 1
--- !u!114 &7424276673090632930
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 6252837202770272937}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: d7e26ca505e81024daeaa6f8c2d39db3, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &6344729100404637082
GameObject:
m_ObjectHideFlags: 0
@ -7780,6 +8319,83 @@ MonoBehaviour:
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &8320601186647954365
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1788759639087524725}
- component: {fileID: 3073103600067354659}
- component: {fileID: 4088085480914243060}
m_Layer: 5
m_Name: icon
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &1788759639087524725
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8320601186647954365}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 7581276514759857901}
m_Father: {fileID: 5175284810897161633}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.5, y: 0.5}
m_AnchorMax: {x: 0.5, y: 0.5}
m_AnchoredPosition: {x: 0.000013351, y: 74}
m_SizeDelta: {x: 662.8208, y: 614.1086}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &3073103600067354659
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8320601186647954365}
m_CullTransparentMesh: 1
--- !u!114 &4088085480914243060
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8320601186647954365}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 21300000, guid: cde4b27d82afac1458e296d4f9f9677f, type: 3}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!1 &8380558442054109099
GameObject:
m_ObjectHideFlags: 0
@ -9370,6 +9986,7 @@ MonoBehaviour:
- {fileID: 432649273647260033}
- {fileID: 7232136265778393517}
- {fileID: 7175543124718776138}
- {fileID: 6759615461001335777}
scaleDownDuration: 0.2
scaleUpDuration: 0.4
tiaoScene: {fileID: 8646173536183414967}
@ -11503,10 +12120,10 @@ RectTransform:
m_Father: {fileID: 8646173537015180660}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 1}
m_AnchorMax: {x: 0, y: 1}
m_AnchoredPosition: {x: 132, y: -174.5}
m_SizeDelta: {x: 264, y: 349}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!222 &8646173537325353418
CanvasRenderer:
@ -11805,6 +12422,7 @@ RectTransform:
- {fileID: 6558797945911485585}
- {fileID: 4892804415357844201}
- {fileID: 2273572872339515038}
- {fileID: 6179276292331245064}
m_Father: {fileID: 8646173536163184085}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}

View File

@ -59,7 +59,7 @@ AnimatorStateMachine:
m_ChildStates:
- serializedVersion: 1
m_State: {fileID: -6068126726748669938}
m_Position: {x: 340, y: 110, z: 0}
m_Position: {x: 350, y: 120, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions: []
m_EntryTransitions: []

View File

@ -152,4 +152,11 @@ AnimationClip:
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
m_Events: []
m_Events:
- time: 0.5
functionName: ShootBullet
data:
objectReferenceParameter: {fileID: 0}
floatParameter: 0
intParameter: 0
messageOptions: 0

View File

@ -5973,6 +5973,9 @@ MonoBehaviour:
- id: M_T_001
prefab: {fileID: 8433650275485930554, guid: c06add8b28931e4448ca9673388595af, type: 3}
cardprefab: {fileID: 5508436327438263543, guid: 93fef5acddd00004b9ba1f30ccd46c96, type: 3}
- id: M_T_003
prefab: {fileID: 8433650275485930554, guid: 2a7699dba5b941a47876cdd9b554cbbb, type: 3}
cardprefab: {fileID: 1126466392417920613, guid: 190d091c09b2af94ea043d4c19395c02, type: 3}
--- !u!114 &1910338487
MonoBehaviour:
m_ObjectHideFlags: 0

File diff suppressed because it is too large Load Diff

View File

@ -92,7 +92,7 @@ public class SkillUp : Fun
private void Awake()
{
description = "更新后的萌耀使用方法xxxxxxxx";
//description = "更新后的萌耀使用方法xxxxxxxx";
}
public void Up(string mengyao_id,string skill_id,string level)
@ -136,36 +136,39 @@ public class SkillUp : Fun
{
foreach (string SkillId in info.SkillList)
{
if (SkillId == "skill_0")
{
// 创建一个眩晕 Buff持续1秒20%概率)
Action<Role> decelerationBuff = CreateDecelerationBuff(1f, 0.2f);
// 将 Buff 添加到玩家的 storageBuff 列表中
role.AddBuff(role.storageBuff, decelerationBuff);
//Debug.LogError("使用技能1-3");
}
if (SkillId == "skill_1")
{
NumberOfBullets += 2;
DamageUp += -0.5f;
}
if (SkillId == "skill_2")
{
Action<Role> decelerationBuff = CreateSlowDownBuff(0.2f, 3f);
// 将 Buff 添加到玩家的 storageBuff 列表中
role.AddBuff(role.storageBuff, decelerationBuff);
}
if (SkillId == "skill_3")
{
}
useskill(SkillId);
}
}
}
public virtual void useskill(string str)
{
if (str == "skill_0")
{
// 创建一个眩晕 Buff持续1秒20%概率)
Action<Role> decelerationBuff = CreateDecelerationBuff(1f, 0.2f);
// 将 Buff 添加到玩家的 storageBuff 列表中
role.AddBuff(role.storageBuff, decelerationBuff);
//Debug.LogError("使用技能1-3");
}
if (str == "skill_1")
{
NumberOfBullets += 2;
DamageUp += -0.5f;
}
if (str == "skill_2")
{
Action<Role> decelerationBuff = CreateSlowDownBuff(0.2f, 3f);
// 将 Buff 添加到玩家的 storageBuff 列表中
role.AddBuff(role.storageBuff, decelerationBuff);
}
}
/// <summary>
/// 使用技能
/// </summary>

View File

@ -42,4 +42,6 @@ public class SkillLevelData
public float DamageOfBig = 0f;//对大型敌人加成
public float DamageOfMin = 0f;//对小型型敌人加成
public float DamageOfSlow = 0f;//对减速敌人加成
}

View File

@ -0,0 +1,94 @@
using System.Collections;
using UnityEngine;
using DG.Tweening;
using System.Threading.Tasks;
public class PhotoMovement : MonoBehaviour
{
// 存储路径点的位置和旋转角度
[System.Serializable]
public class PathPoint
{
public Vector3 position; // 路径点的位置
public Vector3 rotation; // 路径点的旋转角度(欧拉角)
}
public GameObject image;
public PathPoint[] pathPoints; // 路径点数组
public float moveDuration = 1f; // 每次移动的持续时间
public int currentPathIndex = 0; // 当前路径点的索引
public GameObject daiji;
public GameObject shuaigan;
public GameObject shougan;
public bool type=false;
private void Start()
{
image.gameObject.SetActive(false);
}
public void changetype()
{
while(type)
{
To1();
}
}
public async void To1()
{
shuaigan.gameObject.SetActive(true);
var time=shuaigan.GetComponent<SpriteAniation>().sprites.Count * shuaigan.GetComponent<SpriteAniation>().Aintime;
await Task.Delay((int)time);
daiji.gameObject.SetActive(true);
shuaigan.gameObject.SetActive(false);
await Task.Delay(1000);
daiji.gameObject.SetActive(false);
shougan.gameObject.SetActive(true);
var time1 = shougan.GetComponent<SpriteAniation>().sprites.Count * shougan.GetComponent<SpriteAniation>().Aintime;
StartCoroutine(MoveAlongPath());
currentPathIndex = 0;
image.gameObject.SetActive(true);
await Task.Delay((int)time1);
Del1();
}
public void Del1()
{
image.gameObject.SetActive(false);
shuaigan.gameObject.SetActive(false);
daiji.gameObject.SetActive(false) ;
shougan.gameObject .SetActive(false) ;
currentPathIndex = 0;
}
public async void To2()
{
shuaigan.gameObject.SetActive(true);
var time = shuaigan.GetComponent<SpriteAniation>().sprites.Count * shuaigan.GetComponent<SpriteAniation>().Aintime;
await Task.Delay((int)time);
daiji.gameObject.SetActive(true);
shuaigan.gameObject.SetActive(false);
}
private IEnumerator MoveAlongPath()
{
// 持续沿着路径点移动
while (currentPathIndex < pathPoints.Length)
{
PathPoint currentPoint = pathPoints[currentPathIndex];
// 移动到当前路径点的位置,并旋转到对应的角度
yield return image.transform.DOLocalMove(currentPoint.position, moveDuration)
.OnStart(() => image.transform.DOLocalRotate(currentPoint.rotation, moveDuration))
.WaitForCompletion(); // 等待移动和旋转完成
// 移动到下一个路径点
currentPathIndex++;
}
image.gameObject.SetActive(false);
shougan.gameObject.SetActive(false);
}
public void change()
{
StartCoroutine(MoveAlongPath());
currentPathIndex = 0;
image.gameObject.SetActive(true);
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 7915ad4d1e5d5ec4aabe8badad5812b6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -21,19 +21,61 @@ public class WebFishingPK : MonoBehaviour
float remainingTime = 0f;
public Text TimeText;
private float interval = 1f; // 每秒调用一次
/// <summary>
/// 文本描述
/// </summary>、
public Text introtext;
/// <summary>
/// 左右金币
/// </summary>
public Text lefttext;
public Text righttext;
public Button TouruBtn;
public Button selleftbtn;
public Button selrightbtn;
public Dropdown Dropdown;
int pos = 0;
private UnityEngine.Color normalColor = UnityEngine.Color.white; // 默认颜色
private UnityEngine.Color selectedColor = UnityEngine.Color.blue; // 选中时的颜色
/// <summary>
/// 钓鱼
/// </summary>
///
public PhotoMovement photoMovement;
private async void Start()
{
TimeText.gameObject.SetActive(false);
Debug.Log(PlayerPrefs.GetString("UserToken"));
AuthorizationValue = PlayerPrefs.GetString("UserToken");
await ConnectWebSocket();
selleftbtn.onClick.AddListener(() =>
{
pos = 1;
ChangeButtonColor(selleftbtn, selectedColor);
ChangeButtonColor(selrightbtn, normalColor); // 恢复右侧按钮颜色
});
// 为右侧按钮添加点击监听器
selrightbtn.onClick.AddListener(() =>
{
pos = 2;
ChangeButtonColor(selrightbtn, selectedColor);
ChangeButtonColor(selleftbtn, normalColor); // 恢复左侧按钮颜色
});
// 调用发送方法
await SendJsonMessage("{ \"code\": \"FISHING_PK\", \"content\": \"{\\\"action\\\":\\\"INFO\\\"}\" }");
//await SendJsonMessage(30, 1);
}
TouruBtn.onClick.AddListener(async() =>
{
await SendJsonMessage(int.Parse(Dropdown.options[Dropdown.value].text), pos);
});
}
private void ChangeButtonColor(Button btn, UnityEngine.Color color)
{
btn.gameObject.GetComponent<Image>().color = color;
}
private async Task ConnectWebSocket()
{
_webSocket = new ClientWebSocket();
@ -77,7 +119,7 @@ public class WebFishingPK : MonoBehaviour
Debug.Log($"接收到消息:{message}");
var baseResponse = JsonConvert.DeserializeObject<BaseResponse>(message);
Promptmgr.Instance.PromptBubble(baseResponse.message);
//Promptmgr.Instance.PromptBubble(baseResponse.message);
if (baseResponse != null)
{
switch (baseResponse.code)
@ -91,12 +133,26 @@ public class WebFishingPK : MonoBehaviour
{
Debug.Log(fishResponse.data.balance);
Debug.Log(fishResponse.data.intro_text);
introtext.text = fishResponse.data.intro_text;
Debug.Log(fishResponse.data.countdown);
TimeText.gameObject.SetActive(true);
remainingTime = (float)fishResponse.data.countdown;
Debug.Log(fishResponse.data.countdown_type);
if(fishResponse.data.countdown_type==0)
{
photoMovement.Del1();
photoMovement.To1();
}
else
{
photoMovement.Del1();
photoMovement.To2();
}
Debug.Log(fishResponse.data.amount_left);
lefttext.text= fishResponse.data.amount_left.ToString();
Debug.Log(fishResponse.data.amount_right);
righttext.text= fishResponse.data.amount_right.ToString();
}
break;
@ -127,8 +183,20 @@ public class WebFishingPK : MonoBehaviour
Debug.Log(fishResponse2.data.countdown);
remainingTime = (float)fishResponse2.data.countdown;
Debug.Log(fishResponse2.data.countdown_type);
if (fishResponse2.data.countdown_type == 0)
{
photoMovement.Del1();
photoMovement.To1();
}
else
{
photoMovement.Del1();
photoMovement.To2();
}
Debug.Log(fishResponse2.data.amount_left);
Debug.Log(fishResponse2.data.amount_right);
lefttext.text = fishResponse2.data.amount_left.ToString();
righttext.text = fishResponse2.data.amount_right.ToString();
}
else
{

View File

@ -6,6 +6,8 @@ public class shougou : MonoBehaviour
{
public SpriteAniation SpriteAniation;
public GameObject daiji;
public int count;
// Start is called before the first frame update
void Start()
{
@ -15,10 +17,11 @@ public class shougou : MonoBehaviour
// Update is called once per frame
void Update()
{
if(SpriteAniation.index>=24)
if(SpriteAniation.index>= count)
{
this.gameObject.SetActive(false);
daiji.gameObject.SetActive(true);
daiji.GetComponentInParent<PhotoMovement>().change();
SpriteAniation.index = 0;
}
}