// Gizmos private void OnDrawGizmos() { if (_DrawGizmos && Camera.current != null && Camera.current == Camera.main && m_Trackers != null) { foreach (TouchTracker tracker in m_Trackers) { Gizmos.color = Color.red; Vector3 worldPos = Camera.current.ScreenToWorldPoint(tracker.GetCurrPosition()); UtilGizmos.DrawCircleGizmo(worldPos + Camera.current.transform.forward, 1f, Camera.current.transform.up, Camera.current.transform.forward); } } }
void OnDrawGizmos() { if (m_Active && Camera.current != null) { if (m_Triggered) { Gizmos.color = Color.green; } UtilGizmos.DrawCircleGizmo(transform.position, m_Radius, Camera.current.transform.up, Camera.current.transform.forward); } }