void LeftRadius(IPerceivable perceivable) { if (occlusionType == OcclusionType.Computational && perceivable.canUpdateAI) { if (perceivable.myGameObject.activeSelf && perceivable.myGameInstance == myGameInstance) { perceivable.UpdateValues(-1, -1, -1, -1); } } else if (occlusionType == OcclusionType.Visual && perceivable.cullable) { perceivable.StartCulling(); } }
void EnterRadius(IPerceivable perceivable) { if (occlusionType == OcclusionType.Computational && perceivable.canUpdateAI) { if (perceivable.myGameObject.activeSelf && perceivable.myGameInstance == myGameInstance) { perceivable.UpdateValues(aiUpdates.thinkTime, aiUpdates.targetTime, aiUpdates.perceptionTime, aiUpdates.attackTime); } } else if (occlusionType == OcclusionType.Visual && perceivable.cullable) { perceivable.StopCulling(); } }