C# Class Consumable, unitystation

Inheritance: MonoBehaviour
Afficher le fichier Open project: unitystation/unitystation Class Usage Examples

Méthodes publiques

Méthode Description
CanBeConsumedBy ( GameObject, eater ) : bool

Check thats eater can consume this item

ServerPerformInteraction ( interaction ) : void
TryConsume ( GameObject eater ) : void

Try to consume this item by eater. Server side only.

TryConsume ( GameObject feeder, GameObject eater ) : void

Try to consume this item by eater. Server side only.

WillInteract ( interaction, NetworkSide side ) : bool

Method Details

CanBeConsumedBy() public méthode

Check thats eater can consume this item
public CanBeConsumedBy ( GameObject, eater ) : bool
eater GameObject, Player that want to eat item
Résultat bool

ServerPerformInteraction() public méthode

public ServerPerformInteraction ( interaction ) : void
Résultat void

TryConsume() public méthode

Try to consume this item by eater. Server side only.
public TryConsume ( GameObject eater ) : void
eater GameObject Player that want to eat item
Résultat void

TryConsume() public abstract méthode

Try to consume this item by eater. Server side only.
public abstract TryConsume ( GameObject feeder, GameObject eater ) : void
feeder GameObject Player that feed eater. Can be same as eater.
eater GameObject Player that is going to eat item
Résultat void

WillInteract() public méthode

public WillInteract ( interaction, NetworkSide side ) : bool
side NetworkSide
Résultat bool