public void InitializeCanvas() { this.m_canvas = base.gameObject.GetComponent <Canvas>(); this.m_canvasScaler = base.gameObject.GetComponent <CanvasScaler>(); this.m_graphicRaycaster = base.GetComponent <GraphicRaycaster>(); this.m_sgameGraphicRaycaster = (this.m_graphicRaycaster as SGameGraphicRaycaster); this.MatchScreen(); }
public void InitializeCanvas() { this.m_canvas = base.gameObject.GetComponent <Canvas>(); this.m_canvasScaler = base.gameObject.GetComponent <CanvasScaler>(); this.m_graphicRaycaster = base.GetComponent <GraphicRaycaster>(); if ((this.m_graphicRaycaster != null) && this.m_disableInput) { this.m_graphicRaycaster.enabled = false; } this.m_sgameGraphicRaycaster = this.m_graphicRaycaster as SGameGraphicRaycaster; this.MatchScreen(); }