public static void SubscribeToStart(this AbsEntity entity, UnityAction action) { Start_Bh tmp = entity.GetOrAddBehaviour <Start_Bh>(true, entity.transform); tmp.onStart.AddListener(action); }
public static void SubscribeToLateUpdate(this AbsEntity entity, UnityAction action) { LateUpdate_Bh tmp = entity.GetOrAddBehaviour <LateUpdate_Bh>(true, entity.transform); tmp.onLateUpdate.AddListener(action); }