Commit 58d10300 authored by Sven's avatar Sven

pcc update

parent 17f8d808
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerCenterCam : MonoBehaviour
{
[SerializeField] private Transform head, body;
private void Update()
{
PlayerCenterView();
}
public void PlayerCenterView()
{
transform.position = new Vector3(0,80,50);
transform.LookAt((head.position + body.position)/2);
transform.rotation= Quaternion.Euler(60,0,0);
}
}
fileFormatVersion: 2
guid: a253c5d838e09234a99dff802cd465c8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment