public void HandleUnpossession() { try { OnUnpossession?.Invoke(this); HandleUnpossessionImpl(); } finally { Controller = null; } }
public virtual bool CanBePossessedBy(PawnController controller) { return(true); }
public void HandlePossession(PawnController controller, Pawn previousPawn) { Controller = controller; HandlePossessionImpl(previousPawn); OnPossession?.Invoke(this); }