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

        if (obj == null)
        {
            return;
        }
        obj.OnClick();
    }