コード例 #1
0
    /// <summary>
    /// Instantiates a camera fr the local player
    /// </summary>
    private void InstantiateCamera()
    {
        SmoothCamera camera = ((GameObject)GameObject.Instantiate(playerCamera, transform.position, Quaternion.Euler(0, 0, 0))).GetComponent <SmoothCamera>();

        camera.Target = transform;
        camera.Init();
    }