void OnEnable() { OnCardActivateEvent += AddCard; OnCardDeactivateEvent += RemoveCard; webSocketManager = FindObjectOfType <WebSocketManager>(); cardGenerator = FindObjectOfType <CardGenerator>(); hexgrid = FindObjectOfType <HexGrid>(); turnController = FindObjectOfType <TurnController>(); scorekeeper = GetComponent <ScoreKeeper>(); infoGetter = FindObjectOfType <InformationGetter>(); reset = false; }
public override Task StartAsync(CancellationToken cancellationToken) { _informationSent = InformationGetter.RetornaInformacoes(); _mensagem = JsonSerializer.SerializeToString(_informationSent); Console.WriteLine("Iniciado Worker"); var start = true; while (start) { start = ChegaBroadcast(); } return(base.StartAsync(cancellationToken)); }
void OnEnable() { tk = FindObjectOfType <TimeKeeper>(); hexgrid = FindObjectOfType <HexGrid>(); score = FindObjectOfType <ScoreKeeper>(); infoGetter = FindObjectOfType <InformationGetter>(); // webSocketManager = FindObjectOfType<WebSocketManager>(); starterControl = FindObjectOfType <Startup>(); SetGame.OnNoSetsEvent += GetSubmitData; CommandCommunication.OnFeedbackEvent += LogFeedback; Restarter.OnRestartEvent += ClearAll; // PropPlacement.OnMapCompleteEvent += GetHandlers; }
public static PluginDescriptor GetInformation(string name) { var domain = AppDomain.CreateDomain("pluginDomain"); var getter = new InformationGetter { PluginName = name }; domain.DoCallBack(getter.DoCallback); var descriptor = (PluginDescriptor)domain.GetData("descriptor"); AppDomain.Unload(domain); return descriptor; }
void OnEnable() { infoGetter = FindObjectOfType <InformationGetter>(); // hexgrid = FindObjectOfType<HexGrid>(); turnController = FindObjectOfType <TurnController>(); commandCommunication = FindObjectOfType <CommandCommunication>(); propPlacement = FindObjectOfType <PropPlacement>(); startup = FindObjectOfType <Startup>(); InformationGetter.OnImageTakenEvent += GetSendImage; PropPlacement.OnMapCompleteEvent += SendMapCompleteMsg; PropPlacement.OnMapCompleteEvent += GetHandlers; HexQueuedCntrl.OnFinishedHexActionEvent += SendAgentInfo; QueuedControl.OnFinishedActionEvent += SendAgentInfo; }
void OnEnable() { infoGetter = FindObjectOfType <InformationGetter>(); timeKeeper = FindObjectOfType <TimeKeeper>(); scoreKeeper = FindObjectOfType <ScoreKeeper>(); selfCommunication = FindObjectOfType <SelfCommunication>(); PropPlacement.OnMapCompleteEvent += GetExternalHandlers; PropPlacement.OnMapCompleteEvent += Test; PropPlacement.OnReadyToStartGamePlayEvent += ReadyToStartGamePlay; TurnController.GameOverEvent += SendFinalInfo; TurnController.GameOverQuitEvent += SendFinalInfo; #if UNITY_WEBGL && !UNITY_EDITOR Init(); #endif }