Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class CurrentItem : MonoBehaviour {
  5.  
  6. public Item currentItem;
  7. public bool itemSelected = false;
  8.  
  9. public WeaponController weaponController;
  10.  
  11. void Start() {
  12. weaponController = this.transform.root.GetComponent<WeaponController>();
  13. }
  14.  
  15. public void addToWeaponsArray() {
  16. Debug.Log (currentItem.itemName);
  17. weaponController.AddWeapon(currentItem);
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement