using UnityEngine;
using System.Collections;
public class GunController : MonoBehaviour {
public Transform weaponHold;
*ERROR*Gun equippedGun;
*ERROR*public void EquipGun(Gun gunToEquip) {
if (equippedGun != null) {
Destroy(equippedGun.*ERROR*gameObject);
}
equippedGun = Instantiate (gunToEquip);
}
}
If your question is answered, don't forget to accept the answer, <img src="https://dl.dropboxusercontent.com/u/7761356/UnityAnswers/Images/HowToAcceptAnAnswer.PNG">
– Bunny83