private static NpDebugSceneViewController GetInstance() { if (NpDebugSceneViewController.s_This == null) { GameObject gameObject = new GameObject("NpDebugSceneViewController"); NpDebugSceneViewController.s_This = gameObject.AddComponent <NpDebugSceneViewController>(); } return(NpDebugSceneViewController.s_This); }
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); } }
public static void DrawPoint(Vector3 pos, Color col) { NpDebugSceneViewController.DrawPoint(pos, 1f, col); }
public static void DrawCylinder(Vector3 center, float radius, float height, int divide, Color col) { NpDebugSceneViewController.DrawCylinder(center, radius, height, divide, Vector3.up, col); }
public static void DrawBox(Transform trans, Vector3 size, Color col) { NpDebugSceneViewController.DrawBox(trans.position, size, trans.rotation, col); }
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); }
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); }