new asset added
This commit is contained in:
20
3d Prototyp/Assets/Scripts/DeveloperNeeds.cs
Normal file
20
3d Prototyp/Assets/Scripts/DeveloperNeeds.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class DeveloperNeeds : MonoBehaviour
|
||||
{
|
||||
[SerializeField] List<GameObject> Events = new List<GameObject>();
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
3d Prototyp/Assets/Scripts/DeveloperNeeds.cs.meta
Normal file
11
3d Prototyp/Assets/Scripts/DeveloperNeeds.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f7e417f330c4dd845a8f3dc744dff25a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -7,19 +7,47 @@ public class NPC_Behavior : MonoBehaviour
|
||||
[SerializeField] private double _caffeineLevel = 0.0; // max 100, min 0
|
||||
[SerializeField] private double _hungerLevel = 0.0; // max 100, min 0
|
||||
[SerializeField] private double _happinessLevel = 100.0; // max 100, min 0
|
||||
[SerializeField] private double _baseDevelopementPower = 100.0; // max 100, min 0
|
||||
[SerializeField] private double _developementPower = 100.0; // max unlimited, min 0
|
||||
[SerializeField] double eventRate = 1.0; // max 60, min 0 -> how many events are requested per minute
|
||||
|
||||
/// <summary>
|
||||
/// Gibt das Koffeinlevel des Entwicklers zur<75>ck
|
||||
/// </summary>
|
||||
public double CaffeineLevel => _caffeineLevel;
|
||||
/// <summary>
|
||||
/// Gibt das Hungerlevel des Entwicklers zur<75>ck
|
||||
/// </summary>
|
||||
public double HungerLevel => _hungerLevel;
|
||||
/// <summary>
|
||||
/// Gibt das Zufriedenheitslevel des Entwicklers zur<75>ck
|
||||
/// </summary>
|
||||
public double HappnessLevel => _happinessLevel;
|
||||
/// <summary>
|
||||
/// Gibt die Basisentwicklungskraft des Entwicklers zur<75>ck
|
||||
/// </summary>
|
||||
public double BaseDevelopementPower => _baseDevelopementPower;
|
||||
/// <summary>
|
||||
/// Gibt die jetzige Entwicklungskraft des Entwicklers zur<75>ck
|
||||
/// </summary>
|
||||
public double DevelopmentPower => _developementPower;
|
||||
|
||||
public GameManager _gameManager;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
_gameManager = GameManager.Instance;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
// fire event
|
||||
if (UnityEngine.Random.Range(0, 60) == 0)
|
||||
{
|
||||
Debug.Log("TEST");
|
||||
}
|
||||
}
|
||||
|
||||
public Dictionary<string, double> GetStats()
|
||||
|
||||
Reference in New Issue
Block a user