new void Awake() { base.Awake(); HotfixController = GetComponent <DynamicMonoILR>(); if (HotfixController != null) { HotfixController.ILRObjInit(); } }
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); }