Example #1
0
        private void GizmosFunc()
        {
            if (this.m_List[this.m_PrevListBuf].Count > 0)
            {
                for (int i = 0; i < this.m_List[this.m_PrevListBuf].Count; i++)
                {
                    NpDebugSceneViewController.NpDebugSceneViewControllerDataBase npDebugSceneViewControllerDataBase = this.m_List[this.m_PrevListBuf][i];
                    switch (npDebugSceneViewControllerDataBase.m_DataType)
                    {
                    case NpDebugSceneViewController.NpDebugSceneViewControllerDataBase.eDataType.SECTOR:
                        this.DrawSectorFunc((NpDebugSceneViewController.NpDebugSceneViewControllerDataSector)npDebugSceneViewControllerDataBase);
                        break;

                    case NpDebugSceneViewController.NpDebugSceneViewControllerDataBase.eDataType.SPHERE:
                        this.DrawSphereFunc((NpDebugSceneViewController.NpDebugSceneViewControllerDataSphere)npDebugSceneViewControllerDataBase);
                        break;

                    case NpDebugSceneViewController.NpDebugSceneViewControllerDataBase.eDataType.BOX:
                        this.DrawBoxFunc((NpDebugSceneViewController.NpDebugSceneViewControllerDataBox)npDebugSceneViewControllerDataBase);
                        break;

                    case NpDebugSceneViewController.NpDebugSceneViewControllerDataBase.eDataType.CYLINDER:
                        this.DrawSylinderFunc((NpDebugSceneViewController.NpDebugSceneViewControllerDataCylinder)npDebugSceneViewControllerDataBase);
                        break;

                    case NpDebugSceneViewController.NpDebugSceneViewControllerDataBase.eDataType.ARROW:
                        this.DrawArrowFunc((NpDebugSceneViewController.NpDebugSceneViewControllerDataArrow)npDebugSceneViewControllerDataBase);
                        break;

                    case NpDebugSceneViewController.NpDebugSceneViewControllerDataBase.eDataType.POINT:
                        this.DrawPointFunc((NpDebugSceneViewController.NpDebugSceneViewControllerDataPoint)npDebugSceneViewControllerDataBase);
                        break;
                    }
                }
            }
        }
Example #2
0
 public void AddData(NpDebugSceneViewController.NpDebugSceneViewControllerDataBase data)
 {
     this.m_List[this.m_ListBuf].Add(data);
 }