Skip to content
Snippets Groups Projects
Commit 6294a562 authored by Matthewit Dechatech's avatar Matthewit Dechatech
Browse files

Add component menu entries

parent 362ef8b4
No related branches found
No related tags found
No related merge requests found
Showing
with 258 additions and 3 deletions
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &108876
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 4
m_Component:
- 4: {fileID: 481594}
- 212: {fileID: 21230394}
- 61: {fileID: 6100204}
m_Layer: 0
m_Name: Example Square
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1 &134244
GameObject:
m_ObjectHideFlags: 0
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 4
m_Component:
- 4: {fileID: 443724}
- 114: {fileID: 11425818}
- 114: {fileID: 11402560}
- 114: {fileID: 11465890}
m_Layer: 0
m_Name: Weighted Platform
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &443724
Transform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 134244}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 481594}
m_Father: {fileID: 0}
m_RootOrder: 0
--- !u!4 &481594
Transform:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 108876}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 443724}
m_RootOrder: 0
--- !u!61 &6100204
BoxCollider2D:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 108876}
m_Enabled: 1
m_Material: {fileID: 0}
m_IsTrigger: 0
m_UsedByEffector: 0
m_Offset: {x: .5, y: -.5}
serializedVersion: 2
m_Size: {x: 1, y: 1}
--- !u!114 &11402560
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 134244}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c936c50fb8cfd4a4cbdd41302f7f5883, type: 3}
m_Name:
m_EditorClassIdentifier:
TransferMomentumX: 0
TransferMomentumY: 0
TransferMomentumGround: 0
Velocity: {x: 0, y: 0, z: 0}
--- !u!114 &11425818
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 134244}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 90b4c07f75e2a40449585367aa1bb30c, type: 3}
m_Name:
m_EditorClassIdentifier:
TriggerFromChildren: 1
OnEnter:
m_PersistentCalls:
m_Calls: []
m_TypeName: Hedgehog.Core.Triggers.TriggerEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
OnStay:
m_PersistentCalls:
m_Calls: []
m_TypeName: Hedgehog.Core.Triggers.TriggerEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
OnExit:
m_PersistentCalls:
m_Calls: []
m_TypeName: Hedgehog.Core.Triggers.TriggerEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
IgnoreLayers: 0
OnSurfaceEnter:
m_PersistentCalls:
m_Calls: []
m_TypeName: Hedgehog.Core.Triggers.PlatformSurfaceEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
OnSurfaceStay:
m_PersistentCalls:
m_Calls: []
m_TypeName: Hedgehog.Core.Triggers.PlatformSurfaceEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
OnSurfaceExit:
m_PersistentCalls:
m_Calls: []
m_TypeName: Hedgehog.Core.Triggers.PlatformSurfaceEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
OnPlatformEnter:
m_PersistentCalls:
m_Calls: []
m_TypeName: Hedgehog.Core.Triggers.PlatformCollisionEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
OnPlatformStay:
m_PersistentCalls:
m_Calls: []
m_TypeName: Hedgehog.Core.Triggers.PlatformCollisionEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
OnPlatformExit:
m_PersistentCalls:
m_Calls: []
m_TypeName: Hedgehog.Core.Triggers.PlatformCollisionEvent, Assembly-CSharp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null
--- !u!114 &11465890
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 134244}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 78b1655eaa092e14d853bcd7a7e5ac0c, type: 3}
m_Name:
m_EditorClassIdentifier:
Duration: 1
CurrentTime: 0
PositionCurve:
serializedVersion: 2
m_Curve:
- time: 0
value: 0
inSlope: 0
outSlope: 0
tangentMode: 0
- time: 1
value: 1
inSlope: 0
outSlope: 0
tangentMode: 0
m_PreInfinity: 2
m_PostInfinity: 2
ReverseDirection: 0
PingPong: 0
OnComplete:
m_PersistentCalls:
m_Calls: []
m_TypeName: UnityEngine.Events.UnityEvent, UnityEngine, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null
CyclesCompleted: 0
DepressDelay: 0
DepressionAmount: {x: 0, y: 1}
Return: 1
ReturnDelay: .5
--- !u!212 &21230394
SpriteRenderer:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 108876}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_Materials:
- {fileID: 10754, guid: 0000000000000000e000000000000000, type: 0}
m_SubsetIndices:
m_StaticBatchRoot: {fileID: 0}
m_UseLightProbes: 0
m_ReflectionProbeUsage: 0
m_ProbeAnchor: {fileID: 0}
m_ScaleInLightmap: 1
m_PreserveUVs: 0
m_ImportantGI: 0
m_AutoUVMaxDistance: .5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: 7aca43c8f78381445a9f90a2b70083e1, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
--- !u!1001 &100100000
Prefab:
m_ObjectHideFlags: 1
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications: []
m_RemovedComponents: []
m_ParentPrefab: {fileID: 0}
m_RootGameObject: {fileID: 134244}
m_IsPrefabParent: 1
fileFormatVersion: 2
guid: 0baa1c191fa69744da98b08eb39e56a0
timeCreated: 1445646956
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
Loading
Loading
@@ -9,6 +9,7 @@ namespace Hedgehog.Core.Actors
/// <summary>
/// Controls the player.
/// </summary>
[AddComponentMenu("Hedgehog/Actors/Hedgehog")]
public class HedgehogController : MonoBehaviour
{
#region Inspector Fields
Loading
Loading
Loading
Loading
@@ -131,5 +131,13 @@ private static void CreateSwingPlatform(MenuCommand menuCommand)
{
HandleClonePrefab(menuCommand, SwingPlatformPath, SwingPlatformName);
}
private const string WeightedPlatformPath = "Assets/Hedgehog/Prefabs/Level/Platforms/Weighted Platform.prefab";
private const string WeightedPlatformName = "Weighted Platform";
[MenuItem("GameObject/Hedgehog/Platforms/Weighted Platform", false, 10)]
private static void CreateWeightedPlatform(MenuCommand menuCommand)
{
HandleClonePrefab(menuCommand, WeightedPlatformPath, WeightedPlatformName);
}
}
}
Loading
Loading
@@ -17,6 +17,7 @@ public class AreaEvent : UnityEvent<HedgehogController> { }
/// <summary>
/// Hook up to these events to react when a controller enters the area.
/// </summary>
[AddComponentMenu("Hedgehog/Triggers/Area Trigger")]
public class AreaTrigger : BaseTrigger
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -18,6 +18,7 @@ public class ObjectEvent : UnityEvent<HedgehogController> { }
/// Hook up to these events to react when the object is activated. Activation must be
/// performed by other triggers.
/// </summary>
[AddComponentMenu("Hedgehog/Triggers/Object Trigger")]
public class ObjectTrigger : BaseTrigger
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -25,7 +25,7 @@ public class PlatformCollisionEvent : UnityEvent<HedgehogController, TerrainCast
/// <summary>
/// Hook up to these events to react when a controller lands on the object.
/// </summary>
[AddComponentMenu("Hedgehog/Platforms/Platform Trigger")]
[AddComponentMenu("Hedgehog/Triggers/Platform Trigger")]
public class PlatformTrigger : BaseTrigger
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -10,6 +10,7 @@ namespace Hedgehog.Level.Areas
/// When the player collides, this switches the player's collision mask/tag/name.
/// </summary>
[RequireComponent(typeof(AreaTrigger))]
[AddComponentMenu("Hedgehog/Areas/Path Switcher")]
public class PathSwitcher : ReactiveArea
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -8,6 +8,7 @@ namespace Hedgehog.Level.Areas
/// <summary>
/// Pushes the controller upward in the air. Emulates the fans in Hydrocity Act 2.
/// </summary>
[AddComponentMenu("Hedgehog/Areas/Updraft")]
public class Updraft : ReactiveArea
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -9,6 +9,7 @@ namespace Hedgehog.Level.Areas
/// Liquid that makes the controller slower or faster and has options for buoyancy and even running
/// on top of it, if it's fast enough!
/// </summary>
[AddComponentMenu("Hedgehog/Areas/Water")]
public class Water : ReactivePlatformArea
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -7,6 +7,7 @@ namespace Hedgehog.Level.Objects
/// <summary>
/// Adds to a controller's velocity when it enters the area.
/// </summary>
[AddComponentMenu("Hedgehog/Objects/Boost Pad")]
public class BoostPad : ReactiveArea
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -8,6 +8,7 @@ namespace Hedgehog.Level.Objects
/// <summary>
/// Bumpers like the ones in Spring Yard and Carnival Night.
/// </summary>
[AddComponentMenu("Hedgehog/Objects/Bumper")]
public class Bumper : ReactivePlatform
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -6,6 +6,7 @@
namespace Hedgehog.Level.Objects
{
[RequireComponent(typeof(BoxCollider2D))]
[AddComponentMenu("Hedgehog/Objects/Spring")]
public class Spring : ReactivePlatform
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -9,6 +9,7 @@ namespace Hedgehog.Level.Objects
/// <summary>
/// Changes the direction and magnitude of a controller's gravity when activated.
/// </summary>
[AddComponentMenu("Hedgehog/Object Effects/Switch Gravity")]
public class SwitchGravity : ReactiveObject
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -10,6 +10,7 @@ namespace Hedgehog.Level.Objects
/// When activated by a controller, switches its path. Great for springs or buttons that put you on
/// new paths.
/// </summary>
[AddComponentMenu("Hedgehog/Object Effects/Switch Path")]
public class SwitchPath : ReactiveObject
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -8,6 +8,7 @@ namespace Hedgehog.Level.Platforms
/// <summary>
/// Accelerates or decelerates a controller when on its surface.
/// </summary>
[AddComponentMenu("Hedgehog/Platforms/Accelerator")]
public class Accelerator : ReactivePlatform
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -8,6 +8,7 @@ namespace Hedgehog.Level.Platforms
/// <summary>
/// Moves the player forward or backward on the platform.
/// </summary>
[AddComponentMenu("Hedgehog/Platforms/Conveyor Belt")]
public class ConveyorBelt : ReactivePlatform
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -11,6 +11,7 @@ namespace Hedgehog.Level.Platforms
/// Functions the same as the trippy gravity surfaces in Death Egg mk ii. Sticks the controller
/// onto the platform using gravity.
/// </summary>
[AddComponentMenu("Hedgehog/Platforms/Gravity Magnet")]
public class GravityMagnet : ReactivePlatform
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -9,7 +9,7 @@ namespace Hedgehog.Level.Platforms
/// <summary>
/// Gives friction to a platform, allowing slippery surfaces.
/// </summary>
[RequireComponent(typeof(PlatformTrigger))]
[AddComponentMenu("Hedgehog/Platforms/Ice")]
public class Ice : ReactivePlatform
{
/// <summary>
Loading
Loading
Loading
Loading
@@ -8,7 +8,7 @@ namespace Hedgehog.Level.Platforms
/// <summary>
/// Turns a platform into a ledge where a controller can only collide with its top side.
/// </summary>
[RequireComponent(typeof(PlatformTrigger))]
[AddComponentMenu("Hedgehog/Platforms/Ledge")]
public class Ledge : ReactivePlatform
{
/// <summary>
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment