LWFObject.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
    public virtual void Update()
    {
        if (!callUpdate || lwf == null)
            return;

        int pointX = Int32.MinValue;
        int pointY = Int32.MinValue;
        bool press = false;
        bool release = false;

        if (lwf.interactive) {
            bool down = Input.GetButton("Fire1");
            press = Input.GetButtonDown("Fire1");
            release = Input.GetButtonUp("Fire1");
            if (down) {
                Vector3 screenPos = Input.mousePosition;
                Vector3 worldPos = factory.camera.ScreenToWorldPoint(screenPos);
                Matrix4x4 matrix = gameObject.transform.worldToLocalMatrix;
                Vector3 pos = matrix.MultiplyPoint(worldPos);
                pointX = (int)pos.x;
                pointY = -(int)pos.y;
            }
        }

        UpdateLWF(Time.deltaTime, pointX, pointY, press, release);
    }