Beispiel #1
0
 void Start()
 {
     if (m_PortalbleController == null)
     {
         m_PortalbleController = FindObjectOfType <Portalble.PortalbleGeneralController>();
     }
 }
        // 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;
        }