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
|
|
@ -1,27 +0,0 @@
|
|||
using System;
|
||||
|
||||
namespace UniRx
|
||||
{
|
||||
public interface IOptimizedObservable<T> : IObservable<T>
|
||||
{
|
||||
bool IsRequiredSubscribeOnCurrentThread();
|
||||
}
|
||||
|
||||
public static class OptimizedObservableExtensions
|
||||
{
|
||||
public static bool IsRequiredSubscribeOnCurrentThread<T>(this IObservable<T> source)
|
||||
{
|
||||
var obs = source as IOptimizedObservable<T>;
|
||||
if (obs == null) return true;
|
||||
|
||||
return obs.IsRequiredSubscribeOnCurrentThread();
|
||||
}
|
||||
|
||||
public static bool IsRequiredSubscribeOnCurrentThread<T>(this IObservable<T> source, IScheduler scheduler)
|
||||
{
|
||||
if (scheduler == Scheduler.CurrentThread) return true;
|
||||
|
||||
return IsRequiredSubscribeOnCurrentThread(source);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue