Skip to content
Snippets Groups Projects
Commit 894d0722 authored by v.bloch's avatar v.bloch
Browse files

ajout du script de deplacement de la camera

parent 56263bf4
No related merge requests found
fileFormatVersion: 2
guid: 9795b4f78117c48c78fd3ccff0f853b3
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraMouvement : MonoBehaviour
{
public Transform target;
public float smoothing;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void LateUpdate()
{
if(transform.position != target.position){
Vector3 targetPosition = new Vector3(target.position.x, target.position.y,transform.position.z);
transform.position = Vector3.Lerp(transform.position, targetPosition, smoothing);
}
}
}
fileFormatVersion: 2
guid: 28ea63413f02b427485eabebfddf3ae4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
......@@ -8,3 +8,13 @@ C# parse time : 207ms
candidates check time : 27ms
console write time : 0ms
[api-updater (non-obsolete-error-filter)] 26/03/2021 19:06:40 : Starting /Applications/Unity/Hub/Editor/2020.3.1f1/Unity.app/Contents/Tools/ScriptUpdater/APIUpdater.NonObsoleteApiUpdaterDetector.exe
[api-updater (non-obsolete-error-filter)]
----------------------------------
jit/startup time : 219,598ms
moved types parse time: 86ms
candidates parse time : 2ms
C# parse time : 464ms
candidates check time : 51ms
console write time : 1ms
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