C# 클래스 Consumable, unitystation

상속: MonoBehaviour
파일 보기 프로젝트 열기: unitystation/unitystation 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

CanBeConsumedBy() 공개 메소드

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

ServerPerformInteraction() 공개 메소드

public ServerPerformInteraction ( interaction ) : void
리턴 void

TryConsume() 공개 메소드

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

TryConsume() 공개 추상적인 메소드

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
리턴 void

WillInteract() 공개 메소드

public WillInteract ( interaction, NetworkSide side ) : bool
side NetworkSide
리턴 bool