Пример #1
0
 /*
  * Calls for enemyCheck to see what color the reticle should be
  * void -> void
  */
 private void CheckIfEnemy()
 {
     if (_checkForEnemy.IsEnemy())
     {
         SetReticleColor(foundEnemyColor);
     }
     else
     {
         SetReticleColor(_defaultColor);
     }
 }
Пример #2
0
    /*
     * 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();
            }
        }
    }