Interface IKnockBackable
Interface representing an object that can be knocked back. Defines behavior for applying a knock-back effect, typically to a player or an entity.
Namespace: CatchIo.Runtime.Damages
Assembly: cs.temp.dll.dll
Syntax
public interface IKnockBackable
Properties
NetworkPlayer
Refers to the current network player associated with this object in Photon-View. Used to determine if the knock-back target is the local player.
Declaration
Player NetworkPlayer { get; }
Property Value
Type | Description |
---|---|
Player |
Methods
KnockBack(KnockBackData)
Applies a knock-back effect using the provided KnockBackData (Direction, Power, Delay). This object will be unable to perform certain actions or accept input during the delay period.
Declaration
void KnockBack(KnockBackData knockBackData)
Parameters
Type | Name | Description |
---|---|---|
KnockBackData | knockBackData | The data associated with the knock-back effect. Includes the direction of the knock-back, the power applied, and the duration of the effect. |