aboutsummaryrefslogtreecommitdiff
path: root/Assets/Scripts
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@gmail.com>2019-11-03 18:31:04 -0500
committerAndrew Lee <alee14498@gmail.com>2019-11-03 18:31:04 -0500
commite8dd5d4fd406e6e6b710cbe85309f6870bccc37a (patch)
treedb0e99cfdbefb1625d66d07631f43565ae8ff41f /Assets/Scripts
parent20b14c9a89821e6592bf25bed9329a5abe20495c (diff)
downloadUnicity-e8dd5d4fd406e6e6b710cbe85309f6870bccc37a.tar.gz
Unicity-e8dd5d4fd406e6e6b710cbe85309f6870bccc37a.tar.bz2
Unicity-e8dd5d4fd406e6e6b710cbe85309f6870bccc37a.zip
Remove everything
Diffstat (limited to 'Assets/Scripts')
-rw-r--r--Assets/Scripts/Localisation.meta8
-rw-r--r--Assets/Scripts/Player.meta8
-rw-r--r--Assets/Scripts/Player/PlayerMovement.cs36
-rw-r--r--Assets/Scripts/Player/PlayerMovement.cs.meta11
-rw-r--r--Assets/Scripts/Player/PlayerStats.cs79
-rw-r--r--Assets/Scripts/Player/PlayerStats.cs.meta11
-rw-r--r--Assets/Scripts/UI.meta8
-rw-r--r--Assets/Scripts/UI/ExitApplication.cs19
-rw-r--r--Assets/Scripts/UI/ExitApplication.cs.meta11
-rw-r--r--Assets/Scripts/UI/LoadScene.cs47
-rw-r--r--Assets/Scripts/UI/LoadScene.cs.meta11
11 files changed, 0 insertions, 249 deletions
diff --git a/Assets/Scripts/Localisation.meta b/Assets/Scripts/Localisation.meta
deleted file mode 100644
index 1ed2220..0000000
--- a/Assets/Scripts/Localisation.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 92d477af9741ec149b21177b60c5a8e0
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/Player.meta b/Assets/Scripts/Player.meta
deleted file mode 100644
index ccf888b..0000000
--- a/Assets/Scripts/Player.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 0105863dc7a4f6745a1c39a94fafb479
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/Player/PlayerMovement.cs b/Assets/Scripts/Player/PlayerMovement.cs
deleted file mode 100644
index 8f02b5b..0000000
--- a/Assets/Scripts/Player/PlayerMovement.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-/*******************************************************************************
-*
-* Unicity (Project SimLife): A Sims clone written in Unity C#
-* Copyright (C) 2019 Unicity Development Team
-*
-* This software is protected by the copyright and licensing rights held
-* by the Unicity Development Team. (2019)
-*
-*********************************************************************************/
-using UnityEngine;
-using UnityEngine.AI;
-
-public class PlayerMovement : MonoBehaviour
-{
- NavMeshAgent agent;
-
- // Start is called before the first frame update
- void Start()
- {
- agent = GetComponent<NavMeshAgent> ();
- }
-
- // Update is called once per frame
- void Update()
- {
- if(Input.GetMouseButtonDown(0))
- {
- RaycastHit hit;
- Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
- if(Physics.Raycast(ray, out hit, Mathf.Infinity))
- {
- agent.SetDestination(hit.point);
- }
- }
- }
-}
diff --git a/Assets/Scripts/Player/PlayerMovement.cs.meta b/Assets/Scripts/Player/PlayerMovement.cs.meta
deleted file mode 100644
index 30793c0..0000000
--- a/Assets/Scripts/Player/PlayerMovement.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 12d4d72b91b49f045a12f8c1a7cac845
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/Player/PlayerStats.cs b/Assets/Scripts/Player/PlayerStats.cs
deleted file mode 100644
index 21e0e40..0000000
--- a/Assets/Scripts/Player/PlayerStats.cs
+++ /dev/null
@@ -1,79 +0,0 @@
-/*******************************************************************************
-*
-* Unicity (Project SimLife): A Sims clone written in Unity C#
-* Copyright (C) 2019 Unicity Development Team
-*
-* This software is protected by the copyright and licensing rights held
-* by the Unicity Development Team. (2019)
-*
-*********************************************************************************/
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-using UnityEngine.UI;
-
-public class PlayerStats : MonoBehaviour
-{
- public float Hunger;
- public float hungerOverTime;
- public float Bladder;
- public float bladderOverTime;
- public float Hygiene;
- public float Energy;
-
- public Slider HungerBar;
- public Slider BladderBar;
-
- public Material SimDeadMaterial;
-
- private void Start()
- {
- HungerBar.maxValue = Hunger;
- BladderBar.maxValue = Bladder;
- }
-
- private void Update()
- {
- if(Input.GetKeyDown(KeyCode.K))
- {
- Debug.Log("You have given yourself 10% Hunger and Bladder");
- Hunger += 10;
- Bladder += 10;
- }
-
- if(Input.GetKeyDown(KeyCode.L))
- {
- Debug.Log("You have given yourself -10% Hunger and Bladder");
- Hunger -= 10;
- Bladder -= 10;
- }
-
- CalculcateValue();
- }
-
- private void CalculcateValue()
- {
- Hunger -= hungerOverTime * Time.deltaTime;
- Bladder -= bladderOverTime * Time.deltaTime;
-
- if (Hunger <= 0)
- {
- gameObject.GetComponent<MeshRenderer>().material = SimDeadMaterial;
-
- Debug.Log("You have starved to death!");
- Hunger += 100;
- }
-
- UpdateUI();
- }
-
- private void UpdateUI()
- {
- Hunger = Mathf.Clamp(Hunger, 0, 100f);
- Bladder = Mathf.Clamp(Bladder, 0, 100f);
-
- HungerBar.value = Hunger;
- BladderBar.value = Bladder;
-
- }
-}
diff --git a/Assets/Scripts/Player/PlayerStats.cs.meta b/Assets/Scripts/Player/PlayerStats.cs.meta
deleted file mode 100644
index c775fd5..0000000
--- a/Assets/Scripts/Player/PlayerStats.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: de53ee38202fd514b9db477ea52d36d2
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/UI.meta b/Assets/Scripts/UI.meta
deleted file mode 100644
index 9b15e8c..0000000
--- a/Assets/Scripts/UI.meta
+++ /dev/null
@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: ac30ed646cb3c5c45bfe57d46adc7d5e
-folderAsset: yes
-DefaultImporter:
- externalObjects: {}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/UI/ExitApplication.cs b/Assets/Scripts/UI/ExitApplication.cs
deleted file mode 100644
index b1579a1..0000000
--- a/Assets/Scripts/UI/ExitApplication.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-/*******************************************************************************
-*
-* Unicity (Project SimLife): A Sims clone written in Unity C#
-* Copyright (C) 2019 Unicity Development Team
-*
-* This software is protected by the copyright and licensing rights held
-* by the Unicity Development Team. (2019)
-*
-*********************************************************************************/
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-
-public class ExitApplication : MonoBehaviour {
- public void ExitGame() {
- Debug.Log("Game has closed.");
- Application.Quit();
- }
-}
diff --git a/Assets/Scripts/UI/ExitApplication.cs.meta b/Assets/Scripts/UI/ExitApplication.cs.meta
deleted file mode 100644
index 21c9ff8..0000000
--- a/Assets/Scripts/UI/ExitApplication.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: eb5fd4aa07251794aaa5c0194e617eb8
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant:
diff --git a/Assets/Scripts/UI/LoadScene.cs b/Assets/Scripts/UI/LoadScene.cs
deleted file mode 100644
index 3fbb91e..0000000
--- a/Assets/Scripts/UI/LoadScene.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
-*
-* Unicity (Project SimLife): A Sims clone written in Unity C#
-* Copyright (C) 2019 Unicity Development Team
-*
-* This software is protected by the copyright and licensing rights held
-* by the Unicity Development Team. (2019)
-*
-*********************************************************************************/
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-using UnityEngine.SceneManagement;
-
-public class LoadScene : MonoBehaviour {
- bool doMenuRotate;
- int _SceneIndex;
- GameObject MainPanel;
-
- public void MainMenuPlayButton(int SceneIndex) {
- doMenuRotate = true;
- _SceneIndex = SceneIndex;
- }
-
- public void SceneLoader(int SceneIndex) {
- SceneManager.LoadScene(SceneIndex);
- }
-
- public void Start() {
- doMenuRotate = false;
- MainPanel = GameObject.Find("MainPanel");
- }
-
- public void Update() {
- if (doMenuRotate) {
- if (MainPanel.transform.eulerAngles.z < 90) {
- MainPanel.transform.Rotate(0, 0, MainPanel.transform.rotation.eulerAngles.z + 0.01f);
- } else {
- doMenuRotate = false;
- }
- }
-
- if (MainPanel.transform.eulerAngles.z > 90) {
- SceneLoader(_SceneIndex);
- }
- }
-}
diff --git a/Assets/Scripts/UI/LoadScene.cs.meta b/Assets/Scripts/UI/LoadScene.cs.meta
deleted file mode 100644
index c27b60f..0000000
--- a/Assets/Scripts/UI/LoadScene.cs.meta
+++ /dev/null
@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: cae04aeb24aa3764b8cdcc4df0baade4
-MonoImporter:
- externalObjects: {}
- serializedVersion: 2
- defaultReferences: []
- executionOrder: 0
- icon: {instanceID: 0}
- userData:
- assetBundleName:
- assetBundleVariant: