Пример #1
0
        public ActionResult EditFOH(FOH _foh)
        {
            int id = _foh.id;

            using (IDbConnection db = new SqlConnection(ConfigurationManager.ConnectionStrings["DBPPIC"].ConnectionString))

            {
                string sqlQuery     = "Update tfoh Set remark = \'" + _foh.remark + "\'  Where id = " + _foh.id;
                int    rowsAffected = db.Execute(sqlQuery);
            }

            return(new EmptyResult());
        }
Пример #2
0
    void FindComponents()
    {
        //Determines which components an enemy has and which he doesn't.

        if (gameObject.GetComponent <FOV>() != null)
        {
            FieldOfView = gameObject.GetComponent <FOV>();
        }

        if (gameObject.GetComponent <FOH>() != null)
        {
            FieldOfHearing = gameObject.GetComponent <FOH>();
        }
    }