コード例 #1
0
    public TimedAreaDamageOverTimeEffect(ScriptableEffect effect, Enemy enemy) : base(effect, enemy)
    {
        var damageEffect = (ScriptableAreaDamageEffect)Effect;

        _mainEnemy    = enemy;
        _closeEnemies = new Collider[damageEffect.maxEnemies];
        _enemiesCount = Physics.OverlapSphereNonAlloc(_mainEnemy.transform.position, damageEffect.areaSize, _closeEnemies, LayerManager.Instance.enemyLayerMask);
    }
コード例 #2
0
 public TimedEffect(ScriptableEffect effect, Enemy enemy)
 {
     Effect    = effect;
     Enemy     = enemy;
     _interval = Interval;
 }
コード例 #3
0
 public TimedAreaDamageEffect(ScriptableEffect effect, Enemy enemy) : base(effect, enemy)
 {
     _mainEnemy = enemy;
 }
コード例 #4
0
 private static IEnumerator LoadEffectsResources <K, V>(Dictionary <K, V> effectCache) where V : ScriptableEffect
 {
     yield return(ScriptableEffect.LoadAll(effectCache.Values));
 }
コード例 #5
0
 public TimedDamageOverTimeEffect(ScriptableEffect effect, Enemy enemy) : base(effect, enemy)
 {
     _enemy = enemy;
 }
コード例 #6
0
 public TimedSpeedEffect(ScriptableEffect effect, Enemy enemy) : base(effect, enemy)
 {
     _enemy = enemy;
 }