HingeInteractAction - HoldColor/HoldColor GitHub Wiki
HingeInteractAction
该类为Hinge的行为控制类,应挂载于 Hinge/Interact/HingeInteractCollider
。
Properties
- private
OwnController
- HingeController实例
- private
BodyCollisions
- Collider2D列表,记录在InteractArea内的碰撞器对象
- private
interactController
- InteractController实例
- private
_addHealthBySecond
- 每秒回复生命值
- private
_interactAreaRadius
- 互动半径
InteractAreaRadius
- _interactAreaRadius接口
AddHealthBySecond
- _addHealthBySecond接口
Methods
- private void AddHealth()
- 回复生命值