Ejemplo n.º 1
0
        IEnumerator AddMage(Minion minion, float delay)
        {
            yield return(new WaitForSeconds(delay));

            var newMage = _mageFactory.CreateMage(minion.transform.position);

            newMage.Initialize(this);
            if (newMage != null)
            {
                Data.AddMage(newMage);
                MageButtons.AddMageButton(newMage);
                //Time.timeScale = 0;
            }
            Destroy(minion.gameObject);
            StopAllCoroutines();
            _shouldHandleDroppedMage = true;
        }