public void Working_Test() { SCManagerProfiler.DoStartTestCase(nameof(Working_Test)); CList_Enter_Stay_Exit <int> list = new CList_Enter_Stay_Exit <int>(); int[] arrEmpty = new int[] { }; int[] arrValue = new int[] { 0, 1, 3, 5 }; list.AddEnter(arrValue); Assert.AreEqual(list.p_list_Enter.ToArray(), arrValue); Assert.AreEqual(list.p_list_Stay.ToArray(), arrValue); Assert.AreEqual(list.p_list_Exit.ToArray(), arrEmpty); arrValue = new int[] { 0 }; int[] arrExit = new int[] { 1, 3, 5 }; list.AddEnter(arrValue); Assert.AreEqual(list.p_list_Enter.ToArray(), arrEmpty); Assert.AreEqual(list.p_list_Stay.ToArray(), arrValue); Assert.AreEqual(list.p_list_Exit.ToArray(), arrExit); SCManagerProfiler.DoFinishTestCase(nameof(Working_Test)); SCManagerProfiler.DoPrintResult(true); }
// ========================================================================== // /* public - [Do] Function * 외부 객체가 호출(For External class call)*/ public void DoUpdate_CheckVisible() { switch (p_eExcuteMode) { case EExcuteMode.TwoD_Physics: var listEnter = DoCheck_IsVisible_UsePhysics_2D(p_sInCamera_CheckLayer); _listVisibleObject.AddEnter(listEnter); for (int i = 0; i < _listVisibleObject.p_list_Enter.Count; i++) { _listVisibleObject.p_list_Enter[i].gameObject.SendMessage(nameof(IVisibleListener.IVisibleListener_OnVisible), true, SendMessageOptions.DontRequireReceiver); } for (int i = 0; i < _listVisibleObject.p_list_Exit.Count; i++) { _listVisibleObject.p_list_Exit[i].gameObject.SendMessage(nameof(IVisibleListener.IVisibleListener_OnVisible), false, SendMessageOptions.DontRequireReceiver); } break; //case EExcuteMode.ThreeD_Physics: // DoCheck_IsVisible_UsePhysics(p_sCheckLayer_Mask); // break; } }