Skip to content
Snippets Groups Projects
Commit b173c146 authored by Irgiansyah  Mondo's avatar Irgiansyah Mondo
Browse files

Making obs destroy after 5 s

parent 8dca6784
No related merge requests found
...@@ -119,7 +119,8 @@ namespace Nightmare ...@@ -119,7 +119,8 @@ namespace Nightmare
QuestManager.AddEnemy(this.gameObject); QuestManager.AddEnemy(this.gameObject);
//aktifin efek drop looting //aktifin efek drop looting
Instantiate(DropLootPrefabs, transform.position + new Vector3(0,1), Quaternion.identity); GameObject dropLootInstance = Instantiate(DropLootPrefabs, transform.position + new Vector3(0,1), Quaternion.identity);
Destroy(dropLootInstance, 5f);
} }
public void StartSinking () public void StartSinking ()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment