Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. private IEnumerator SpawnAndDestroyEnemy(Vector3 pos)
  2. {
  3. GameObject go = GameObject.CreatePrimitive(PrimitiveType.Sphere);
  4. go.transform.position = pos;
  5.  
  6. yield return new WaitForSeconds(1);
  7.  
  8. Destroy(go);
  9. }
  10.  
  11. private void SphereIndicator(Vector3 pos)
  12. {
  13. GameObject go = GameObject.CreatePrimitive(PrimitiveType.Sphere);
  14. go.transform.position = pos;
  15.  
  16. Destroy(go,1f);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement