private void Start()
 {
     eventListController      = FindObjectOfType <EventListController>();
     eventDisplayController   = FindObjectOfType <EventDisplayController>();
     _weatherSignController   = FindObjectOfType <WeatherSignController>();
     _relationshipsController = FindObjectOfType <RelationshipsController>();
     _currencyController      = FindObjectOfType <CurrencyController>();
     _boardEvents             = FindObjectOfType <BoardEvents>();
 }
 public static BoardEvents Get()
 {
     if (s_instance == null)
     {
         Board board = Board.Get();
         if (board == null)
         {
             return(null);
         }
         s_instance = board.gameObject.AddComponent <BoardEvents>();
     }
     return(s_instance);
 }
예제 #3
0
    private void Start()
    {
        _events             = FindObjectOfType <EventsController>();
        _waveController     = FindObjectOfType <WaveController>();
        _currencyController = FindObjectOfType <CurrencyController>();
        _attackerSpawners   = FindObjectsOfType <AttackerSpawner>();
        _heatZones          = FindObjectOfType <HeatZones>();
        _infoController     = FindObjectOfType <InfoController>();
        _boardEvents        = FindObjectOfType <BoardEvents>();

        _cooldownCounterReset();

        StartCoroutine(_firstEvent());
    }
 private void Awake()
 {
     s_instance = this;
 }
 private void OnDestroy()
 {
     s_instance = null;
 }
예제 #6
0
 private void Start()
 {
     _boardEvents = FindObjectOfType <BoardEvents>();
 }