示例#1
0
 new void Awake()
 {
     base.Awake();
     HotfixController = GetComponent <DynamicMonoILR>();
     if (HotfixController != null)
     {
         HotfixController.ILRObjInit();
     }
 }
示例#2
0
        public static T GetILRComponent <T>(this DynamicMonoILR ilr) where T : Component
        {
            T ilinstance = ilr._ilrObject as T;

            if (ilinstance == null)
            {
                ilr.ILRObjInit();
                ilinstance = ilr._ilrObject as T;
            }
            return(ilinstance);
        }