Class WeaverBreakable
WeaverCore's implementation of breakable objects. Used for implementing grass and breakable props
Inherited Members
Namespace: WeaverCore.Components
Assembly: WeaverCore.dll
Syntax
public class WeaverBreakable : Breakable, IHittable, ISerializationCallbackReceiver
Methods
| Edit this page View SourceHit(HitInfo)
Called when the player hits the object
Declaration
public bool Hit(HitInfo hit)
Parameters
Type | Name | Description |
---|---|---|
HitInfo | hit | Information about how the player hit the object |
Returns
Type | Description |
---|---|
bool | Returns whether the hit was a valid hit or not |
Implements
UnityEngine.ISerializationCallbackReceiver