Destructible Class

Summary

A PlatformerGameKit.Hit.ITarget which destroys the UnityEngine.GameObject when hit.
Assembly
PlatformerGameKit.dll
Namespace
PlatformerGameKit
Interfaces
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type-.->Interface0["Hit.ITarget"] click Interface0 "/platformer/api/PlatformerGameKit/ITarget" Type["Destructible"] class Type type-node

Syntax

[AddComponentMenu(Strings.MenuPrefix + "Destructible")]
[HelpURL(Strings.APIDocumentation + "/" + nameof(Destructible))]
public sealed class Destructible : MonoBehaviour, Hit.ITarget

Remarks

Documentation: Hits

Attributes

Type Description
AddComponentMenu
HelpURLAttribute

Methods

Name Value Summary
CanBeHit(Hit) bool
Can this object be affected by the current PlatformerGameKit.Hit details?
ReceiveHit(Hit) void
Applies the effects of the current PlatformerGameKit.Hit to this object.