Player Controller and color changer

This commit is contained in:
2022-12-01 09:03:46 +01:00
commit 345b79009a
723 changed files with 113232 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraController : MonoBehaviour
{
public GameObject player;
private Vector3 offset;
void Start()
{
offset = transform.position - player.transform.position;
}
void LateUpdate()
{
transform.position = player.transform.position + offset;
}
}