添加 Power信息 没什么特别的 直接上代码
BatteryPickUp.h
Paste_Image.png
BatteryPickUp.cpp
Paste_Image.png
BatteryCollectorCharacter.h
添加protected 属性 InitialPower private 属性 CharacterPower
Paste_Image.png
添加public get update方法
Paste_Image.png
BatteryCollectorCharacter.cpp
Paste_Image.png










网友评论