hi I am trying to run a Public void, via anohther script that holds an ienurnerator.
if i make Addtrigger public stattic comes up with errors how do you do this correctly?
public void EarnedGold (){
AddGoldTrigger ();
}
other script
public void AddGoldTrigger (){
Debug.Log ("running to treasurebox...");
StartCoroutine(AddGold());
}