Exemplo n.º 1
0
    private IEnumerator Remove()
    {
        yield return(new WaitForSeconds(1.5f));

        Destroy(this.gameObject);

        if (this.dropItemId != null)
        {
            if (Random.Range(0, 10000) < this.dropOdds)
            {
                BattleControllor.AddItem(this.dropItemId, this.transform.localPosition);
            }
        }
    }