コード例 #1
0
 void Awake()
 {
     A = this;
 }
コード例 #2
0
ファイル: CameraFollowS.cs プロジェクト: chorgan93/Ectoplazaa
    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>();
        }
    }