public static void NextItem() { Debug.Log("Next Item called"); if (wasteQueue.Length == 0 || index == wasteQueue.Length) { Debug.Log("That's every item!"); } else { //wasteToThrow = Instantiate(wasteQueue[index]); Thrower.SetWaste(wasteQueue[index]); Debug.Log("index: " + index); ++index; } }
void OnMouseOver() { //Debug.Log("Mouse is Over Waste"); if (Input.GetMouseButtonDown(0)) { //Debug.Log("Clicked!"); // Whatever you want it to do. Thrower.SetWaste(this.gameObject); } if (!stillOn) { ItemDescriber.instance.SetItemDescription(ToStringRepresentation()); } stillOn = true; }