void UseItem() { if (transform.childCount > 1 && Input.GetKeyDown(actionButton)) { Completable c = transform.GetChild(1).GetComponent <Completable>(); if (c != null) { c.CheckForCompletion(); } } }
void UseItem() { if (transform.childCount > 1 && Input.GetKeyDown(actionButton)) { Completable c = transform.GetChild(1).GetComponent <Completable>(); if (c != null) { c.CheckForCompletion(); } } }