コード例 #1
0
 private void updateRemoteBehaviour()
 {
     if (null != _remoteBehaviour)
     {
         _remoteBehaviour.Source = null;
         DestroyImmediate(_remoteBehaviour);
         _remoteBehaviour = null;
     }
     if (_target)
     {
         _remoteBehaviour        = _target.gameObject.AddComponent <TargetLayoutElementRemoteBehaviour>();
         _remoteBehaviour.Source = this;
         //_remoteBehaviour.hideFlags |= HideFlags.HideInInspector;
     }
 }
コード例 #2
0
 public void OnDestroyOfRemoteBehaviour()
 {
     _target          = null;
     _remoteBehaviour = null;
 }