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")]
[PlatformerHelpUrl(typeof(Destructible))]
public class Destructible : MonoBehaviour, Hit.ITarget

Remarks

Documentation: Hits

Attributes

Type Description
AddComponentMenu
PlatformerHelpUrlAttribute [Assert-Conditional] A UnityEngine.HelpURLAttribute which points to Platformer Game Kit's documentation.

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.