private void RemoveSoul(bool sign) { ISoul soulBody = _soulQueue.Dequeue(); Destroy(soulBody.SoulGameObject); _soulCheck.ItemsToCheck(soulBody.SoulState, sign); MoveAndAddSoul(); }
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); }