public NextLevelEvent(SerializationInfo info, StreamingContext context) : base(info, context) { end = context.GetVars().Local.GetGameObjectByGUID(Guid.Parse(info.GetString("endGUID"))) as End; player = context.GetVars().Local.GetGameObjectByGUID(Guid.Parse(info.GetString("playerGUID"))) as Player; }
public NextLevelEvent(End end, Player player) { this.end = end; this.player = player; }