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); }
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; }
private void Start() { _boardEvents = FindObjectOfType <BoardEvents>(); }