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,42 @@
using UnityEngine;
namespace Customer {
public enum MoodState {
Normal,
Angry
}
public class CustomerVisibleController : MonoBehaviour
{
[SerializeField] private GameObject _customerNomal;
[SerializeField] private GameObject _customerAngry;
private MoodState _state = MoodState.Normal;
private void SetNormal() {
_customerNomal.SetActive(true);
_customerAngry.SetActive(false);
}
private void SetAngry() {
_customerNomal.SetActive(false);
_customerAngry.SetActive(true);
}
public void SetState(MoodState state) {
_state = state;
switch (_state) {
case MoodState.Normal:
SetNormal();
break;
case MoodState.Angry:
SetAngry();
break;
}
}
public MoodState GetState() {
return _state;
}
}
}