Skip to content

Commit 96aa74c

Browse files
authored
Merge pull request #26 from monaverse/al/warps
Add Mona Warps
2 parents c46fc74 + d4257c6 commit 96aa74c

File tree

15 files changed

+215
-2
lines changed

15 files changed

+215
-2
lines changed

Assets/Mona/Inspectors.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Mona/PlayerPropertiesVolumeInspector.cs.meta renamed to Assets/Mona/Inspectors/PlayerPropertiesVolumeInspector.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

Assets/Mona/ReactorInspector.cs.meta renamed to Assets/Mona/Inspectors/ReactorInspector.cs.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#if UNITY_EDITOR
2+
using UnityEngine;
3+
using UnityEditor;
4+
5+
namespace Mona
6+
{
7+
[CustomEditor(typeof(MonaWarp))]
8+
public class WarpInspector : Editor
9+
{
10+
public override void OnInspectorGUI()
11+
{
12+
Texture banner = (Texture)AssetDatabase.LoadAssetAtPath("Assets/Resources/Editor/warp.png", typeof(Texture));
13+
if (banner)
14+
{
15+
GUI.DrawTexture(new Rect(0, 0, 498, 66), banner, ScaleMode.ScaleToFit, false);
16+
}
17+
GUILayout.Space(60);
18+
19+
base.DrawDefaultInspector();
20+
}
21+
}
22+
}
23+
#endif

Assets/Mona/Inspectors/WarpInspector.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using UnityEngine;
2+
3+
namespace Mona
4+
{
5+
public partial class MonaWarp : MonoBehaviour
6+
{
7+
[Tooltip("The point in space to warp the player")]
8+
public GameObject WarpPoint;
9+
10+
[Tooltip("Reset the rotation of the player to the warp point rotation")]
11+
public bool UseRotation;
12+
}
13+
}

Assets/Mona/TemplateScripts/MonaWarp.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Resources/Editor/ppv.png

-3.48 KB
Loading

0 commit comments

Comments
 (0)