Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        Stats buff = new Stats();

        buff.dodgeBonus    = -0.2f;
        buff.baseAttackMod = 0.1f;
        buff.hitBonus      = 0.1f;

        db = new DurationBuff(-1, buff, gameObject.GetComponent <Unit>());
    }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        UnitManager.instance.RegisterTurnObserver(this);

        Stats debuff = new Stats();

        debuff.hitBonus           = -0.4f;
        debuff.dodgeBonus         = -0.4f;
        debuff.movement.moveSpeed = -4;
        db = new DurationBuff(-1, debuff, GetComponent <Unit>());
        Particle.Star(transform.position + new Vector3(0.1f, 0.3f, 0f));
        Particle.Star(transform.position + new Vector3(-0.1f, 0.3f, 0f));
    }
Beispiel #3
0
    // IReach attackRange;

    void Start()
    {
        Unit temp = GetComponent <Unit>();
        // temp.HasActed=false;
        Stats tempstats = new Stats();

        tempstats.defense    = 10;
        tempstats.dodgeBonus = -1;
        stone = new DurationBuff(-1, tempstats, temp);
        temp.AddInhibitor(this);
        // attackRange=temp.AttackInfo.reach;
        // temp.AttackInfo.reach=temp.AttackInfo.gameObject.AddComponent<Norange>();
    }