Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. GameObject instantedBomb = Instantiate(bombPrefab, new Vector3(posX,
  2.             bombPrefab.transform.position.y, posY),
  3.             bombPrefab.transform.rotation);
  4.             var script = instantedBomb.GetComponent<Bomb>();
  5.             script.player = gameObject;
  6.  
  7. Bomb:
  8.  
  9. public Component player;
  10.     private void AddBombInt()
  11.     {
  12.         player.addBomb();
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement