protected void Awake() { _conPlayerFactions = ConfactoryFinder.Instance.Get <ConPlayerFactions>(); _conPlayerFactions.PlayerFactionAssignedEvent += OnPlayerFactionAssignedEvent; _conPlayerFactions.PlayerFactionUnassignedEvent += OnPlayerFactionUnassignedEvent; AwakeCheckFactionItem(); }
protected void Awake() { _conPlayers = ConfactoryFinder.Instance.Get <ConPlayers>(); _conPlayerFactions = ConfactoryFinder.Instance.Get <ConPlayerFactions>(); _factionsTranslator = SceneTrackersFinder.Instance.GetSceneTracker <AirConsoleMessageST>().Get <FactionsTranslator>(); if (_conPlayers.IsReadyToUse) { OnReady(); } else { _conPlayers.ConPlayerReadyToUseEvent += OnConPlayerReadyToUseEvent; } SendUpdateFactions(); }