示例#1
0
 private void OnEnable()
 {
     _graph = UnityUtility.FindParent <Graph>(this);
     _label = GetComponent <GraphLabel>();
     _colorAnimation.Init(new Color32(255, 255, 255, 255));
     _colorAnimation.Finished += ApplyColor;
 }
示例#2
0
        private void OnEnable()
        {
            _surface           = UnityUtility.FindParent <Surface>(this);
            _surface.OnAction += HandleSurfaceAction;

            StartCoroutine(InitWebData());
        }
示例#3
0
        private void Start()
        {
            _graph        = GetComponent <GraphMetaData>();
            _graphManager = UnityUtility.FindParent <Debug_GraphManager>(this);

            FetchProperties();
        }
示例#4
0
        private void OnEnable()
        {
            _pointRenderer       = GetComponent <PointRenderer>();
            _graph               = UnityUtility.FindParent <Graph>(this);
            _graph.OnDataChange += OnDataChange;
            OnDataChange();

            _posAnimation.Update += SetData;
        }
示例#5
0
        void OnEnable()
        {
            _surface           = UnityUtility.FindParent <Surface>(this);
            _surface.OnAction += HandleSurfaceAction;

            _markerSpawner = GetComponent <ArMarkerSpawner>();

            StartCoroutine(InitWebData());
        }
示例#6
0
        private void OnEnable()
        {
            _surface           = UnityUtility.FindParent <Surface>(this);
            _surface.OnAction += HandleSurfaceAction;

            _graphManager = GetComponent <GraphManager>();

            StartCoroutine(InitWebData());
        }
示例#7
0
        void OnEnable()
        {
            IsInitialized = false;
            // search for Surface anchor on parents
            _surface           = UnityUtility.FindParent <Surface>(this);
            _surface.OnAction += HandleSurfaceAction;

            _graphManager = GetComponent <GraphManager>();

            StartCoroutine(InitWebData());
        }
示例#8
0
        private void Start()
        {
            _graph = UnityUtility.FindParent <Graph>(this);

            _filterListener = UnityUtility.FindParent <GraphFilterListener>(this);
            if (_filterListener)
            {
                _filterListener.OnFilterUpdate += OnFilterUpdate;
                OnFilterUpdate();
            }

            _rotationAnimation.Init(Quaternion.identity);
            _colorAnimation.Init(new Color32(255, 255, 255, 0));
            StartCoroutine(RunUpdates());
        }
示例#9
0
 private void OnEnable()
 {
     _graph          = UnityUtility.FindParent <Graph>(this);
     _image          = GetComponent <Image>();
     _image.material = Instantiate(_image.material);
 }
示例#10
0
文件: FitToSurface.cs 项目: SebiH/ART
 private void Start()
 {
     _surface = UnityUtility.FindParent <Surface>(this);
 }
示例#11
0
 private void OnEnable()
 {
     _graph           = UnityUtility.FindParent <GraphMetaData>(this).Graph;
     _wasGraphFlipped = _graph.IsFlipped;
     _sharedMaterial  = Instantiate(MaterialTemplate);
 }
示例#12
0
文件: GraphOutline.cs 项目: SebiH/ART
 private void OnEnable()
 {
     _graph = UnityUtility.FindParent <Graph>(this);
 }
示例#13
0
 private void OnEnable()
 {
     _graph = UnityUtility.FindParent <Graph>(this);
     _graph.OnDataChange += OnDataChange;
 }
示例#14
0
 private void OnEnable()
 {
     _surface      = UnityUtility.FindParent <Surface>(this);
     _graphManager = GetComponent <GraphManager>();
     _offsetAnimation.Init(0);
 }