public static void PrefabInitDelegate(GameObject gameObject) { AgentHuman human = gameObject.GetComponent <AgentHuman>(); if (null != human) { human.PrefabPreAwake(); } }