示例#1
0
    protected void Awake()
    {
        _conPlayerFactions = ConfactoryFinder.Instance.Get <ConPlayerFactions>();

        _conPlayerFactions.PlayerFactionAssignedEvent   += OnPlayerFactionAssignedEvent;
        _conPlayerFactions.PlayerFactionUnassignedEvent += OnPlayerFactionUnassignedEvent;

        AwakeCheckFactionItem();
    }
示例#2
0
 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();
 }