Exemplo n.º 1
0
 void Awake()
 {
     A = this;
 }
Exemplo n.º 2
0
    void Start()
    {
        if (!newStartPos){
        Vector3 resetPos = poi.transform.position;
        resetPos.z = camOffset.z;
        transform.position = resetPos;
        }
        //camera.backgroundColor = Color.black;

        ownCam = GetComponent<Camera>();
        minSize = ownCam.orthographicSize;
        currentCamSize = minSize;

        Cursor.visible = false;

        if (poi.GetComponent<AdaptiveCameraPtS>()){
            inGameFollow = poi.GetComponent<AdaptiveCameraPtS>();
        }
    }