Esempio n. 1
0
        public IEnumerator Setup()
        {
            SceneManager.LoadScene(battleArena, LoadSceneMode.Additive);

            yield return(null);

            _grid = FindObjectOfType <PathfindingGrid>();

            if (_grid == null)
            {
                Logging.LogError("No grid!");
            }

            spawner.Inject(_grid);

            matchCreatedEvent.Raise();

            StartCoroutine(BeginNextFrame());
        }