Interface IStunnable
Interface that represents object that can be stunned. This defines for applying a stun effect to an object, typically a player.
Namespace: CatchIo.Runtime.Damages
Assembly: cs.temp.dll.dll
Syntax
public interface IStunnable
Properties
NetworkPlayer
This refers to the current network players in Photon-View. This is used to determine if the stun target is myself.
Declaration
Player NetworkPlayer { get; }
Property Value
Type | Description |
---|---|
Player |
Methods
Stun(Single)
Applies a stun effect for a specified duration. This object will be unable to perform certain actions and block inputs during the stun duration.
Declaration
void Stun(float stunDuration)
Parameters
Type | Name | Description |
---|---|---|
System.Single | stunDuration | The duration of the stun effect in seconds. |