Ejemplo n.º 1
0
        void OnEnable()
        {
            ReceiverInstance = (RemoteReceiverComponent)target;

            if (ReceiverInstance.ReceiverCoreInstance != null)
            {
                EditorApplication.update += DoUpdate;
            }
        }
        void Start()
        {
            ReceiverCoreInstance = new RremoteInfromerReceiver <MessageType>();

            if (Address == string.Empty)
            {
                Address = ReceiverCoreInstance.GetLastAdddress();
            }

            if (InitSingleton)
            {
                Singleton = this;
            }

            if (AutoConnect)
            {
                Connect();
            }
        }