function still executes even if return is called

前端 未结 0 1730
北海茫月
北海茫月 2020-11-30 16:07

I have this function that i dont want to execute if a boolean is false but return doesnt seem to work.

public virtual void Throw() {
    if (!_held) return;

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题