Пример #1
0
    public Companion(CompanionPrototype proto) : base(proto)
    {
        prototype = proto;

        mMovingSpeed         = proto.movementSpeed;
        mCollidesWith        = proto.CollidesWith;
        Body.mIgnoresGravity = proto.ignoreGravity;
        mAttackManager       = new AttackManager(this);
        mAttackManager.rangedAttacks.Add(new RangedAttack(this, (RangedAttackPrototype)proto.attack));
        copyAttack = proto.copyAttack;
    }
Пример #2
0
 public Drone(CompanionPrototype proto) : base(proto)
 {
 }