// Use this for initialization void Start() { sound = GameObject.Find("Main Camera").GetComponent <SoundPlayer>(); inventory = GetComponent <PlayerInventory> (); input = GetComponent <InputScript> (); PMS = GetComponent <PlayerMovementScript> (); input.assignXButton(UseItem, null); input.assignAButton(Attack, null); }