Example #1
0
 // Start is called before the first frame update
 void Awake()
 {
     stations = new List <Station>();
     InitializeStationsArray();
     centerDisplayController = GameObject.FindGameObjectWithTag("PlayerUIandCamera").GetComponent <StationDisplayManager>();
     //schematicManager = this.GetComponentInChildren<SchematicSphereManager>();
     newListner = this.GetComponent <SetNewCameraListner>();
 }
Example #2
0
    // Start is called before the first frame update
    void Awake()
    {
        canvas       = this.GetComponentInChildren <Canvas>();
        canvasRT     = canvas.GetComponent <RectTransform>();
        canvasWidth  = canvasRT.rect.width;
        canvasHeight = canvasRT.rect.height;
        sdm          = this.gameObject.GetComponent <StationDisplayManager>();

        chosenCenterCamScaleValue = scalePresets[(int)chosenCenterCamScale];

        ApplyChosenScale();

        PositionRectTrans();
    }
    // Start is called before the first frame update
    void Start()
    {
        sdm = this.GetComponentInParent <StationDisplayManager> ();

        schematicTexture = StationManager.stations[(int)EStationID.Schematic].stationCamera.targetTexture;
    }