示例#1
0
 private static NpDebugSceneViewController GetInstance()
 {
     if (NpDebugSceneViewController.s_This == null)
     {
         GameObject gameObject = new GameObject("NpDebugSceneViewController");
         NpDebugSceneViewController.s_This = gameObject.AddComponent <NpDebugSceneViewController>();
     }
     return(NpDebugSceneViewController.s_This);
 }
示例#2
0
 private void Awake()
 {
     if (NpDebugSceneViewController.s_This == null)
     {
         NpDebugSceneViewController.s_This = this;
         this.m_List        = new List <NpDebugSceneViewController.NpDebugSceneViewControllerDataBase> [2];
         this.m_List[0]     = new List <NpDebugSceneViewController.NpDebugSceneViewControllerDataBase>();
         this.m_List[1]     = new List <NpDebugSceneViewController.NpDebugSceneViewControllerDataBase>();
         this.m_ListBuf     = 0;
         this.m_PrevListBuf = 0;
         this.m_IsUpdate    = false;
     }
     else
     {
         UnityEngine.Object.Destroy(base.gameObject);
     }
 }
示例#3
0
 public static void DrawPoint(Vector3 pos, Color col)
 {
     NpDebugSceneViewController.DrawPoint(pos, 1f, col);
 }
示例#4
0
 public static void DrawCylinder(Vector3 center, float radius, float height, int divide, Color col)
 {
     NpDebugSceneViewController.DrawCylinder(center, radius, height, divide, Vector3.up, col);
 }
示例#5
0
 public static void DrawBox(Transform trans, Vector3 size, Color col)
 {
     NpDebugSceneViewController.DrawBox(trans.position, size, trans.rotation, col);
 }
示例#6
0
 public static void DrawSector(Vector3 pos, Vector3 dir, float deg, int divide, float length, float height, Color col)
 {
     NpDebugSceneViewController.DrawSector(pos, dir, deg, divide, length, height, Vector3.up, col);
 }
示例#7
0
 public static void DrawSector(Vector3 pos, Vector3 dir, float deg, int divide, Color col)
 {
     NpDebugSceneViewController.DrawSector(pos, dir, deg, divide, 1f, 1f, Vector3.up, col);
 }