Пример #1
0
        void Awake()
        {
            regions    = new List <Region>();
            importDock = null;
            exportDock = null;
            coast      = null;

            #region clickable
            InteractableViaClickTouch ict = gameObject.GetComponent <InteractableViaClickTouch>();
            if (ict == null)
            {
                ict = gameObject.AddComponent <InteractableViaClickTouch>();
            }

            ict.handleActivationDeactivation.Add(handleActivationDeactivation);
            #endregion

            #region PdaInspectable
            PdaInspectable pi = gameObject.GetComponent <PdaInspectable>();
            if (pi == null)
            {
                pi = gameObject.AddComponent <PdaInspectable>();
            }
            #endregion
        }
Пример #2
0
        void Awake()
        {
            #region clickable
            InteractableViaClickTouch ict = gameObject.GetComponent <InteractableViaClickTouch>();
            if (ict == null)
            {
                ict = gameObject.AddComponent <InteractableViaClickTouch>();
            }

            ict.handleActivationDeactivation.Add(handleActivationDeactivation);
            #endregion

            #region PdaInspectable
            PdaInspectable pi = gameObject.GetComponent <PdaInspectable>();
            if (pi == null)
            {
                pi = gameObject.AddComponent <PdaInspectable>();
            }
            #endregion
        }