示例#1
0
    new private void Start()
    {
        base.Start();
        _infest = new Infest(0, 0, 2.5f, this, 0.3f, TargetingFunction.IsCorpse);
        _attack = new Attack(0, 1.0f / 0.8f, this, 12, (Targetable attackable) => TargetingFunction.IsEnemy(this, attackable))
        {
            Effects = new List <Effect> {
                new Neurotoxin(0.2f, 0.2f, 1, (Targetable attackable) => TargetingFunction.IsEnemyUnit(this, attackable))
                {
                    Duration = 3
                }
            }
        };

        Skills = new[] { _attack };
    }