Ejemplo n.º 1
0
        public static LoadSceneManager.LoadTool SetAction(System.Action call, LoadSceneManager.LoadType type = LoadSceneManager.LoadType.Lt_Back)
        {
            ActionMode mode = new ActionMode();

            mode.SetAction(type, call);
            return(mode);
        }
Ejemplo n.º 2
0
 public void PlayAction(LoadSceneManager.LoadType type)
 {
     if (mCallBack.ContainsKey(type))
     {
         mCallBack[type]();
     }
 }
Ejemplo n.º 3
0
        internal void PlayLoad(LoadSceneManager.LoadType type)
        {
            var mode = GetTool <ActionMode>();

            if (mode != null)
            {
                mode.PlayAction(type);
            }
        }
Ejemplo n.º 4
0
 public void SetAction(LoadSceneManager.LoadType type, System.Action callBack)
 {
     mCallBack[type] = callBack;
 }