Ejemplo n.º 1
0
        private void RemoveSoul(bool sign)
        {
            ISoul soulBody = _soulQueue.Dequeue();

            Destroy(soulBody.SoulGameObject);
            _soulCheck.ItemsToCheck(soulBody.SoulState, sign);

            MoveAndAddSoul();
        }
Ejemplo n.º 2
0
        private IEnumerator Co_SpawnSoul()
        {
            yield return(new WaitForSeconds(0.2f));

            _actualWaypoint = _portalWaypoint;
            GetQueueSoul();
            ISoul soul = SetSoulProps();

            yield return(new WaitForSeconds(0.4f));

            StartCoroutine(MoveToWaypoint(soul.SoulGameObject, _waypoints.Length - 1));
            _soulQueue.Enqueue(soul);
        }