Example #1
0
 void Update()
 {
     if (destroyableLogic != null)
     {
         if (destroyableLogic.DropLoot() == true)
         {
             Instantiate(dropObjectPrefab, this.transform.position, Quaternion.identity);
             Destroy(gameObject);
         }
     }
 }