示例#1
0
 void TryCall(SceneTransitionDelegate callback)
 {
     try
     {
         if (callback != null)
         {
             callback(nextScene);
         }
     } catch (System.Exception e)
     {
         Debug.LogException(e);
     }
 }
示例#2
0
 void TryCall(SceneTransitionDelegate pDelegate)
 {
     try
     {
         if (pDelegate != null)
         {
             pDelegate(mNextSceneIdx);
         }
     }catch (System.Exception e)
     {
         Debug.LogException(e);
     }
 }