Esempio n. 1
0
        public static void SubscribeToStart(this AbsEntity entity, UnityAction action)
        {
            Start_Bh tmp = entity.GetOrAddBehaviour <Start_Bh>(true, entity.transform);

            tmp.onStart.AddListener(action);
        }
Esempio n. 2
0
        public static void SubscribeToLateUpdate(this AbsEntity entity, UnityAction action)
        {
            LateUpdate_Bh tmp = entity.GetOrAddBehaviour <LateUpdate_Bh>(true, entity.transform);

            tmp.onLateUpdate.AddListener(action);
        }