Example #1
0
        public IEnumerator despawn()
        {
            yield return(timeDespawn);

            tiles.clearUnitInTile(posX, posY);
            gameObject.SetActive(false);
        }
Example #2
0
        private IEnumerator poder()
        {
            bc.enabled = true;
            yield return(tempo);

            bc.enabled = false;
            areaPoder.SetActive(false);
            poseidon.SetActive(false);
            tiles.clearUnitInTile(10, 2);
        }