コード例 #1
0
    // Use this for initialization
    void Start()
    {
        theCamera = FindObjectOfType <CameraManager_>();
        thePlayer = FindObjectOfType <Moving_Object>();

        if (startPoint == thePlayer.currentMapName)
        {
            theCamera.transform.position = new Vector3(this.transform.position.x, this.transform.position.y, theCamera.transform.position.z);
            thePlayer.transform.position = this.transform.position;
        }
    }