コード例 #1
0
        void OnEnable()
        {
            ReceiverInstance = (RemoteReceiverComponent)target;

            if (ReceiverInstance.ReceiverCoreInstance != null)
            {
                EditorApplication.update += DoUpdate;
            }
        }
コード例 #2
0
        void Start()
        {
            ReceiverCoreInstance = new RremoteInfromerReceiver <MessageType>();

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

            if (InitSingleton)
            {
                Singleton = this;
            }

            if (AutoConnect)
            {
                Connect();
            }
        }