Function.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
    void Update()
    {
        nodeCanvas.transform.rotation = Camera.main.transform.rotation;
        if (controller.selection.node == this) {
            nodeText.text = "";
        } else {
            nodeText.text = funcname;
        }
        Vector3 targetPosition = new Vector3(nx, ny, nz);
        transform.position = Vector3.SmoothDamp(transform.position, targetPosition, ref velocity, smoothTime);
        if (halo != null) {
            halo.transform.position = transform.position;
            halo.transform.rotation = Camera.main.transform.rotation;
        }
    }

Usage Example

示例#1
0
        public void InsertBook()
        {
            Function iFt = new Function();
            string   sql = "INSERT book SET book_id = '" + book_id + "' ,book_type = '" + book_type + "', book_name = '" + book_name + "', author = '" + author + "',book_price = '" + book_price + "', publisher = '" + publisher + "', amount = '" + amount + "'";

            iFt.Update(sql);
        }
All Usage Examples Of Function::Update