Commit 7b2678b1 authored by mmaluschnig's avatar mmaluschnig
Browse files

updated controls

parent 7ff1d08e
<Properties StartupConfiguration="{67A4F128-F6AC-CD88-DA35-F29416A0792A}|">
<MonoDevelop.Ide.ItemProperties.Assembly-CSharp PreferredExecutionTarget="Unity.Editor" />
<MonoDevelop.Ide.Workbench ActiveDocument="Assets/Scripts/DaytimeScripts/CharacterInteractions.cs">
<MonoDevelop.Ide.Workbench ActiveDocument="Assets/Scripts/MimeScripts/TriggerManager.cs">
<Files>
<File FileName="Assets/Scripts/DaytimeScripts/DaytimeManager.cs" Line="1" Column="1" />
<File FileName="Assets/Scripts/MimeScripts/SpawnKeys.cs" Line="1" Column="1" />
<File FileName="Assets/Scripts/DaytimeScripts/CharacterInteractions.cs" Line="1" Column="1" />
<File FileName="Assets/Scripts/DaytimeScripts/CharacterInteractions.cs" Line="68" Column="116" />
<File FileName="Assets/Scripts/DaytimeScripts/TentInteractoins.cs" Line="28" Column="112" />
<File FileName="Assets/Scripts/TrapezeScripts/TrapezePerson.cs" Line="45" Column="75" />
<File FileName="Assets/Scripts/MimeScripts/TriggerManager.cs" Line="45" Column="78" />
</Files>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
......
......@@ -53,7 +53,7 @@ public class CharacterInteractions : MonoBehaviour {
{
if (!interacting) {
//if player presses up, begin the interaction.
if (Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.UpArrow)) {
if (Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.E)) {
interacting = true;
setText(speechBox, characterScript.GreetingMessage(), Mathf.Infinity, characterScript.getResponses());
interactButton.gameObject.SetActive(false);
......@@ -65,7 +65,7 @@ public class CharacterInteractions : MonoBehaviour {
}
}
} else {//if the player is currently interacting
if (Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.UpArrow)) {
if (Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.E)) {
setText(speechBox, characterScript.converse(), Mathf.Infinity, characterScript.getResponses());
}
}
......
......@@ -25,7 +25,7 @@ public class TentInteractoins : MonoBehaviour {
void Update() {
checkNearbyPlayers();
if (interactable) {
if (Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.UpArrow)) {
if (Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.E)) {
DaytimeManager.beginPerformance();
}
}
......
......@@ -42,7 +42,7 @@ public class TriggerManager : MonoBehaviour
void Update()
{
//Check which key the player presses
if (Input.GetKeyDown(KeyCode.LeftArrow))
if (Input.GetKeyDown(KeyCode.LeftArrow) || Input.GetKeyDown(KeyCode.A))
{
moveColliders((int)keys.left);
Vector3 newScale = player.transform.localScale;
......@@ -50,7 +50,7 @@ public class TriggerManager : MonoBehaviour
player.transform.localScale = newScale;
checkLowestKey();
}
if (Input.GetKeyDown(KeyCode.RightArrow))
if (Input.GetKeyDown(KeyCode.RightArrow) || Input.GetKeyDown(KeyCode.D))
{
moveColliders((int)keys.right);
Vector3 newScale = player.transform.localScale;
......@@ -58,7 +58,7 @@ public class TriggerManager : MonoBehaviour
player.transform.localScale = newScale;
checkLowestKey();
}
if (Input.GetKeyDown(KeyCode.UpArrow))
if (Input.GetKeyDown(KeyCode.UpArrow) || Input.GetKeyDown(KeyCode.W))
{
moveColliders((int)keys.up);
Vector3 newPos = player.transform.position;
......@@ -66,7 +66,7 @@ public class TriggerManager : MonoBehaviour
player.transform.position = newPos;
checkLowestKey();
}
if (Input.GetKeyDown(KeyCode.DownArrow))
if (Input.GetKeyDown(KeyCode.DownArrow) || Input.GetKeyDown(KeyCode.S))
{
moveColliders((int)keys.down);
Vector3 newPos = player.transform.position;
......
Markdown is supported
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