Weapos Rejiggered
Modified weapon scripts to eliminate specialized projectile behavior - allows charged weapons to have projectiles and modify weapon stats when charged Added machine gun weapon & VFX Moved third party code to Plugins folder to improve compile times
This commit is contained in:
parent
2a0fe34611
commit
dbc522a224
2105 changed files with 7033 additions and 1141 deletions
|
|
@ -0,0 +1,9 @@
|
|||
using System.Reflection;
|
||||
|
||||
namespace NaughtyAttributes.Editor
|
||||
{
|
||||
public abstract class NativePropertyDrawer
|
||||
{
|
||||
public abstract void DrawNativeProperty(UnityEngine.Object target, PropertyInfo property);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 715c5ada29663a245b0b35937c892377
|
||||
timeCreated: 1510924467
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
using UnityEngine;
|
||||
using System.Reflection;
|
||||
using UnityEditor;
|
||||
|
||||
namespace NaughtyAttributes.Editor
|
||||
{
|
||||
[NativePropertyDrawer(typeof(ShowNativePropertyAttribute))]
|
||||
public class ShowNativePropertyNativePropertyDrawer : NativePropertyDrawer
|
||||
{
|
||||
public override void DrawNativeProperty(UnityEngine.Object target, PropertyInfo property)
|
||||
{
|
||||
object value = property.GetValue(target, null);
|
||||
|
||||
if (value == null)
|
||||
{
|
||||
string warning = string.Format("{0} doesn't support {1} types", typeof(ShowNativePropertyNativePropertyDrawer).Name, "Reference");
|
||||
EditorGUILayout.HelpBox(warning, MessageType.Warning);
|
||||
Debug.LogWarning(warning, target);
|
||||
}
|
||||
else if (!EditorDrawUtility.DrawLayoutField(value, property.Name))
|
||||
{
|
||||
string warning = string.Format("{0} doesn't support {1} types", typeof(ShowNativePropertyNativePropertyDrawer).Name, property.PropertyType.Name);
|
||||
EditorGUILayout.HelpBox(warning, MessageType.Warning);
|
||||
Debug.LogWarning(warning, target);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 518b0fde2a9d15d498bc17fd1d7062c7
|
||||
timeCreated: 1510926376
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in a new issue