public void IsPlayerInGaurdView( ) { bool isPlayerInGuardView = Physics2D.OverlapCircle(GuardView.position, GuardViewRadius, WhatIsPlayerLayer); if (isPlayerInGuardView) { playerSpawn.PlayerInGaurdView(); } }