static PluginFactory()
        {
            DllPath  = Assembly.GetExecutingAssembly().Location;
            BasePath = Path.GetDirectoryName(DllPath);

            Master = new Lazy <MasterHolder>(() => {
                return(MasterHolder.Load(Path.Combine(BasePath, "MasterData")));
            }, LazyThreadSafetyMode.ExecutionAndPublication);
        }
Beispiel #2
0
 public Plugin(MasterHolder master)
 {
     this.Master       = master;
     this.PrefabHolder = new PhotonViewHolder(master.PhotonView);
 }