Ejemplo n.º 1
0
Archivo: Bug.cs Proyecto: sballew/LD47
        private IEnumerator StealSkill()
        {
            yield return(new WaitForSeconds(1f));

            if (!_skillToSteal.IsFilled)
            {
                Destroy(this.gameObject);
            }
            else
            {
                _skillToSteal.SetSlotFill(false);
                _carriedGem.enabled = true;
                _indicator.gameObject.SetActive(true);
            }
        }
Ejemplo n.º 2
0
 private void PlaceGem()
 {
     DropGem();
     _skillSlot.SetSlotFill(true);
     GameManager.Instance.OnGemPlaced();
 }