Compare commits
4 commits
441d488ea6
...
d56c523cfb
Author | SHA1 | Date | |
---|---|---|---|
Mark Joshwel | d56c523cfb | ||
Mark Joshwel | 009ca4053c | ||
Mark Joshwel | 158816fbc5 | ||
Mark Joshwel | d2c73e02b5 |
File diff suppressed because it is too large
Load diff
23
RunningLateGame/Assets/Scripts/LiftButtonInteractable.cs
Normal file
23
RunningLateGame/Assets/Scripts/LiftButtonInteractable.cs
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
/*
|
||||||
|
* authors: mark joshwel
|
||||||
|
* date: 10/8/2024
|
||||||
|
* description: lift button behaviour implementation
|
||||||
|
*/
|
||||||
|
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lift button behaviour implementation
|
||||||
|
/// </summary>
|
||||||
|
public class LiftButtonInteractable : CommonInteractable
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// the lift the button is controlling
|
||||||
|
/// </summary>
|
||||||
|
[SerializeField] private LiftController liftController;
|
||||||
|
|
||||||
|
public override void Interact()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f51ae3c1dda14e8f953c345038325df0
|
||||||
|
timeCreated: 1723277530
|
14
RunningLateGame/Assets/Scripts/LiftController.cs
Normal file
14
RunningLateGame/Assets/Scripts/LiftController.cs
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
/*
|
||||||
|
* authors: mark joshwel
|
||||||
|
* date: 10/8/2024
|
||||||
|
* description: lift behaviour implementation
|
||||||
|
*/
|
||||||
|
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lift-ting behaviour for lifts
|
||||||
|
/// </summary>
|
||||||
|
public class LiftController : MonoBehaviour
|
||||||
|
{
|
||||||
|
}
|
3
RunningLateGame/Assets/Scripts/LiftController.cs.meta
Normal file
3
RunningLateGame/Assets/Scripts/LiftController.cs.meta
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 16f14e51af8048f39d3f22da58d2df23
|
||||||
|
timeCreated: 1723277629
|
8
RunningLateGame/Assets/UI.meta
Normal file
8
RunningLateGame/Assets/UI.meta
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0e3c9e40d082a254a888b4aaa509d5ac
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
RunningLateGame/Assets/UI/Font.meta
Normal file
8
RunningLateGame/Assets/UI/Font.meta
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 41be94ffee1b24a4fb8e45242c216745
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
8
RunningLateGame/Assets/UI/Menus.meta
Normal file
8
RunningLateGame/Assets/UI/Menus.meta
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 506b009c62753b94082fa3472c2b8f43
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
7
RunningLateGame/Assets/UI/Menus/InteractionPrompt.uxml
Normal file
7
RunningLateGame/Assets/UI/Menus/InteractionPrompt.uxml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<ui:UXML xmlns:ui="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements" editor-extension-mode="False">
|
||||||
|
<ui:VisualElement name="Root" style="flex-grow: 1; justify-content: space-around; align-items: center;">
|
||||||
|
<ui:VisualElement name="VertHolder" style="flex-grow: 1; justify-content: center; margin-top: 25%;">
|
||||||
|
<ui:Label tabindex="-1" parse-escape-sequences="true" display-tooltip-when-elided="true" text="Press E to Interact" style="background-color: rgba(0, 0, 0, 0.33); color: rgb(255, 255, 255); -unity-text-align: upper-center; padding-right: 8px; padding-left: 8px; padding-top: 8px; padding-bottom: 8px; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; white-space: normal;" />
|
||||||
|
</ui:VisualElement>
|
||||||
|
</ui:VisualElement>
|
||||||
|
</ui:UXML>
|
10
RunningLateGame/Assets/UI/Menus/InteractionPrompt.uxml.meta
Normal file
10
RunningLateGame/Assets/UI/Menus/InteractionPrompt.uxml.meta
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5ecae982f651ff6438bbaa95ba0362e1
|
||||||
|
ScriptedImporter:
|
||||||
|
internalIDToNameTable: []
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
|
script: {fileID: 13804, guid: 0000000000000000e000000000000000, type: 0}
|
|
@ -99,7 +99,7 @@
|
||||||
{
|
{
|
||||||
"type": "System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
"type": "System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
"key": "ShapeBuilder.ActiveShapeIndex",
|
"key": "ShapeBuilder.ActiveShapeIndex",
|
||||||
"value": "{\"m_Value\":6}"
|
"value": "{\"m_Value\":1}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
"type": "System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089",
|
||||||
|
@ -119,7 +119,7 @@
|
||||||
{
|
{
|
||||||
"type": "UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
"type": "UnityEngine.Vector3, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
"key": "ShapeBuilder.LastSize",
|
"key": "ShapeBuilder.LastSize",
|
||||||
"value": "{\"m_Value\":{\"x\":-1.2044639587402344,\"y\":1.0023797750473023,\"z\":1.2235469818115235}}"
|
"value": "{\"m_Value\":{\"x\":183.86538696289063,\"y\":0.0,\"z\":-161.46841430664063}}"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "UnityEngine.Quaternion, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
"type": "UnityEngine.Quaternion, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null",
|
||||||
|
|
Reference in a new issue