C#(Unity) - How to stop the function execution? : <p>I have code like this one:</p>

<pre><code>    public void Interacted(){
    if (GameObject.Find ("Sara").GetComponent&lt;controls&gt; ().isIntered) {
        if (Interer.name == "sinkTop" &amp;&amp; !sinked) {
            Interer.GetComponent&lt;SpriteRenderer&gt; ().sprite = sinkON;
            sinked = true;
        }
        if (Interer.name == "sinkTop" &amp;&amp; sinked) {
            Interer.GetComponent&lt;SpriteRenderer&gt; ().sprite = sinkOFF;
            sinked = false;
        }
    }
}
</code></pre>

<p>How do I stop <code>Interacted()</code> execution inside <code>if (Interer.name == "sinkTop" &amp;&amp; !sinked)</code>?</p>
