コード例 #1
0
ファイル: UIController.cs プロジェクト: jasonta/Portalble
 void Start()
 {
     if (m_PortalbleController == null)
     {
         m_PortalbleController = FindObjectOfType <Portalble.PortalbleGeneralController>();
     }
 }
コード例 #2
0
        // Use this for initialization
        protected virtual void Start()
        {
            // Empty
            m_UnityPlaneInteractionLayer = 0x1 << m_UnityPlaneInteractionLayer;

            if (main != null && main != this)
            {
                Debug.LogWarning("Warning: two or more portalble controllers detected.");
            }
            main = this;
        }