void Targeting(BulletController bullet) { for (int i = 0; i < splits.Count; i++) { var split = splits[i]; var splitCon = split.GetComponentInChildren <SplitController>(); if (splitCon == null) { Debug.Log("splitCon is null"); return; } if (bullet.GetText().CompareTo(splitCon.GetLastKey()) < 0) { bullet.SetTarget(split); return; } } if (!bullet.ExistTarget()) { bullet.SetTarget(splits[splits.Count - 1]); } }