void OnServerInitialized() { ctf = this; LoadVariables(); //RegisterGame(); ScoreLimit = configData.GameSettings.ScoreLimit; webObject = new GameObject("WebObject"); uWeb = webObject.AddComponent <UnityWeb>(); uWeb.Add(configData.TeamA.FlagImageURL, Team.A); uWeb.Add(configData.TeamB.FlagImageURL, Team.B); }
private void OnDestroy() { QueueList.Clear(); filehandler = null; }
private void Awake() { filehandler = (CaptureTheFlag)Interface.Oxide.RootPluginManager.GetPlugin(nameof(CaptureTheFlag)); }