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:
Reinier Vens 2021-01-31 03:52:32 +00:00
commit dbc522a224
2105 changed files with 7033 additions and 1141 deletions

View file

@ -0,0 +1,9 @@
using System.Reflection;
namespace NaughtyAttributes.Editor
{
public abstract class FieldDrawer
{
public abstract void DrawField(UnityEngine.Object target, FieldInfo field);
}
}

View file

@ -0,0 +1,13 @@
fileFormatVersion: 2
guid: 8949267118f232a4fbebd777de8ed6fe
timeCreated: 1508835721
licenseType: Free
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,28 @@
using UnityEngine;
using System.Reflection;
using UnityEditor;
namespace NaughtyAttributes.Editor
{
[FieldDrawer(typeof(ShowNonSerializedFieldAttribute))]
public class ShowNonSerializedFieldFieldDrawer : FieldDrawer
{
public override void DrawField(UnityEngine.Object target, FieldInfo field)
{
object value = field.GetValue(target);
if (value == null)
{
string warning = string.Format("{0} doesn't support {1} types", typeof(ShowNonSerializedFieldFieldDrawer).Name, "Reference");
EditorGUILayout.HelpBox(warning, MessageType.Warning);
Debug.LogWarning(warning, target);
}
else if (!EditorDrawUtility.DrawLayoutField(value, field.Name))
{
string warning = string.Format("{0} doesn't support {1} types", typeof(ShowNonSerializedFieldFieldDrawer).Name, field.FieldType.Name);
EditorGUILayout.HelpBox(warning, MessageType.Warning);
Debug.LogWarning(warning, target);
}
}
}
}

View file

@ -0,0 +1,13 @@
fileFormatVersion: 2
guid: 8449d5c2158e97d479caaec24c61baec
timeCreated: 1508835721
licenseType: Free
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: