public void OnClick(SceneObj objScene) { if (objScene is BlockObj) { BlockObj bobj = objScene as BlockObj; bobj.OnClick(); } }
/// <summary> /// 执行功能模块事件 /// </summary> public void DoFunBlock(FunBlock block) { BlockObj obj = FindFunBlockObj(block); if (obj == null) { return; } obj.OnClick(); }