private void CheckShooting() { if (isRetracting && transform.position.Equals(origin)) { isShooting = false; isRetracting = false; if (transform.childCount > 0) { Transform child = transform.GetChild(0); status.AddWord(child.gameObject.tag, child.gameObject.name, child.gameObject.GetComponent <Word>().IsDummy()); Destroy(child.gameObject); } } }