Beispiel #1
0
        void Awake()
        {
            _hoverHighlight = GetComponent <HoverHighlight>();
            var meshFilter = GetComponent <MeshFilter>();

            mesh = meshFilter.sharedMesh;
        }
Beispiel #2
0
        void Awake()
        {
            _hoverHighlight = GetComponent <HoverHighlight>();
            var meshFilter = GetComponent <MeshFilter>();

            mesh            = meshFilter.sharedMesh;
            controlsManager = FindObjectOfType <ControlsManager>();
            loadedSBSPlane  = Resources.Load("Prefabs/SBS_Plane_indicator");
        }
Beispiel #3
0
 void Awake()
 {
     if (!show)
     {
         gameObject.SetActive(false);
     }
     hover       = GetComponent <HoverHighlight>();
     undoManager = GetComponentInParent <UndoManager>();
 }
Beispiel #4
0
 void Awake()
 {
     _hoverHighlight = GetComponent <HoverHighlight>();
     _meshFilter     = GetComponent <MeshFilter>();
 }
Beispiel #5
0
 void Awake()
 {
     _hoverHighlight = GetComponent <HoverHighlight>();
     controlsManager = FindObjectOfType <ControlsManager>();
 }