void FirstUpdate() { Collider[] insiders = Physics.OverlapSphere(transform.position, 5); foreach (Collider insider in insiders) { // Projectile stuff ProjectileBehaviour projectile = insider.gameObject.GetComponent <ProjectileBehaviour>(); if (projectile != null) { if (projectile.parent.Faction != parent.Faction) { projectile.Flip(); } } } firstUpdate = false; }