コード例 #1
0
 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();
 }
コード例 #2
0
ファイル: CUIFormScript.cs プロジェクト: wujiangu/wanshiwu0.1
 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();
 }