public void SummonAlly() { if (allyManager == null) { return; } Ally ally = allyManager.SummonedAlly(); if (ally != null) { enemyTarget = ally.transform; Invoke("UnSummonAlly", ally.duration); } }