/* * Calls for enemyCheck to see what color the reticle should be * void -> void */ private void CheckIfEnemy() { if (_checkForEnemy.IsEnemy()) { SetReticleColor(foundEnemyColor); } else { SetReticleColor(_defaultColor); } }
/* * Broadcasts to PlayerLasers and checks if object fired on * is an enemy * void -> void */ private void ShootAtEnemy() { if (OnShoot != null) { OnShoot(); if (_checkForEnemy.IsEnemy()) { ShootDrone(); } } }