public static void SetGraphicRaycaster(GameObject target) { GraphicRaycaster graphicRaycaster = target.AddMissingComponent <GraphicRaycaster>(); graphicRaycaster.set_enabled(true); graphicRaycaster.set_blockingObjects(0); graphicRaycaster.set_ignoreReversedGraphics(true); }
private void StopGuide() { if (this != null) { GraphicRaycaster component = base.GetComponent <GraphicRaycaster>(); if (component != null) { component.set_enabled(true); } } }
private void OnStepSuccess() { if (!this.m_isGuideOn && this != null) { GraphicRaycaster component = base.GetComponent <GraphicRaycaster>(); if (component != null) { component.set_enabled(false); } } }