// Start is called before the first frame update void Start() { _map = GameObject.FindGameObjectWithTag(Constants.TAG_MAP_MANAGER).GetComponent <MapManagerScript>(); _state = GameObject.FindGameObjectWithTag(Constants.TAG_STATE_MANAGER).GetComponent <StateManagerScript>(); _builder = GameObject.FindGameObjectWithTag(Constants.TAG_CHUNK_BUILDER).GetComponent <ChunkBuilderScript>(); _camera = GameObject.FindGameObjectWithTag(Constants.TAG_MAIN_CAMERA).GetComponent <CameraMoverScript>(); }
// Start is called before the first frame update void Start() { _cBuilder = GameObject.FindGameObjectWithTag(Constants.TAG_CHUNK_BUILDER).GetComponent <ChunkBuilderScript>(); _tBuilder = GameObject.FindGameObjectWithTag(Constants.TAG_TILE_BUILDER).GetComponent <TileBuilderScript>(); _camera = GameObject.FindGameObjectWithTag(Constants.TAG_MAIN_CAMERA).GetComponent <CameraMoverScript>(); _map = GameObject.FindGameObjectWithTag(Constants.TAG_MAP_MANAGER).GetComponent <MapManagerScript>(); UpdateWaveInfoText(); }