Add Alot of stuff, Computer, repairStation, Whole game, Many things!

This commit is contained in:
2024-11-18 06:31:28 +01:00
parent 19b7964f83
commit a2091c3cf2
430 changed files with 55285 additions and 715 deletions

View File

@@ -0,0 +1,25 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class CustomerController : MonoBehaviour {
NavMeshAgent _navMeshAgent;
private Transform _target;
private void Awake() {
_navMeshAgent = GetComponent<NavMeshAgent>();
}
private void Update() {
_target = PlayerController.Instance.transform;
_navMeshAgent.SetDestination(_target.position);
}
public void SetDestination(Vector3 position) {
if (_target == null) {
_target = this.transform;
}
_target.position = position;
}
}