Ejemplo n.º 1
0
        private void Start()
        {
            fpsStyle.alignment = TextAnchor.MiddleLeft;

            editorMenu   = menu.GetComponent <EditorMenu>();
            interactionM = InteractionModule.GetInit();
            offset       = new Vector3(offset.x, offset.y, Mathf.Abs(zoomMin));
            speedRotate  = scrollBarRotA.GetComponent <Scrollbar>();
        }
Ejemplo n.º 2
0
 private void Awake()
 {
     borderAround    = border * 2;
     img             = new Image[2];
     img[0]          = box.GetComponent <Image>();
     boxRT           = box.GetComponent <RectTransform>();
     arrowRT         = arrow.GetComponent <RectTransform>();
     img[1]          = arrowRT.GetComponent <Image>();
     boxRT.sizeDelta = new Vector2(maxWidth, boxRT.sizeDelta.y);
     BGColorFade     = BGColor;
     BGColorFade.a   = 0;
     textColorFade   = textColor;
     textColorFade.a = 0;
     isUI            = false;
     foreach (Image bg in img)
     {
         bg.color = BGColorFade;
     }
     boxText.color = textColorFade;
     freeCamera    = Camera.main.GetComponent <FreeCamera>();
     editorMenu    = GameObject.Find("Menu").GetComponent <EditorMenu>();
 }