ToolUser.Update C# (CSharp) Method

Update() public method

public Update ( ) : void
return void
    void Update()
    {
        this.untilUnlocked -= Time.deltaTime;

        if (this.tool != null) {
            this.elapsed += Time.deltaTime;
            if (this.elapsed > 0.1f) {
                Destroy (this.tool);
                this.tool = null;
            }
        }

        if (this.untilUnlocked <= 0) {
            this.locked = false;
        }
    }