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
30
Assets/Plugins/UniRx/Scripts/System/IProgress.cs
Normal file
30
Assets/Plugins/UniRx/Scripts/System/IProgress.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
// defined from .NET Framework 4.5 and NETFX_CORE
|
||||
|
||||
#if !(NETFX_CORE || ENABLE_MONO_BLEEDING_EDGE_EDITOR || ENABLE_MONO_BLEEDING_EDGE_STANDALONE)
|
||||
|
||||
using System;
|
||||
|
||||
namespace UniRx
|
||||
{
|
||||
public interface IProgress<T>
|
||||
{
|
||||
void Report(T value);
|
||||
}
|
||||
|
||||
public class Progress<T> : IProgress<T>
|
||||
{
|
||||
readonly Action<T> report;
|
||||
|
||||
public Progress(Action<T> report)
|
||||
{
|
||||
this.report = report;
|
||||
}
|
||||
|
||||
public void Report(T value)
|
||||
{
|
||||
report(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue