コード例 #1
0
    public void TakeCameraToPoi(string poiname)
    {
        PointOfInterest poi = POIs.Where(x => x.name == poiname).First();

        poi.Begin();

        cam.transform.SetParent(poi.transform);
        cam.transform.localPosition = Vector3.zero;
        cam.transform.localRotation = Quaternion.identity;
    }