static PluginFactory() { DllPath = Assembly.GetExecutingAssembly().Location; BasePath = Path.GetDirectoryName(DllPath); Master = new Lazy <MasterHolder>(() => { return(MasterHolder.Load(Path.Combine(BasePath, "MasterData"))); }, LazyThreadSafetyMode.ExecutionAndPublication); }
public Plugin(MasterHolder master) { this.Master = master; this.PrefabHolder = new PhotonViewHolder(master.PhotonView); }