예제 #1
0
파일: Monster.cs 프로젝트: winneter/BigHero
    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);
            }
        }
    }