Exemplo n.º 1
0
Arquivo: Boss_B.cs Projeto: Pmang/TRGR
    void Counter()
    {
        //プレイヤーに若干のダメージを与える
        int damage = MobBase.calcDamage(minAtk, maxAtk);

        hpapi.Damage(damage);
    }
Exemplo n.º 2
0
 //範囲内に何かが入ると動く
 private void OnTriggerEnter(Collider other)
 {
     //プレイヤータグの場合はダメージを与えて判定を消す
     if (other.tag == "Player")
     {
         int damage = MobBase.calcDamage((int)(boss.minAtk * 1.2), (int)(boss.maxAtk * 1.2));
         hpapi.Damage(damage);
         transform.root.gameObject.GetComponent <BoxCollider>().enabled = false;
     }
 }
Exemplo n.º 3
0
Arquivo: Mob_H.cs Projeto: Pmang/TRGR
    IEnumerator Attack()
    {
        int damage = MobBase.calcDamage(minAtk, maxAtk);

        hpapi.Damage(damage);

        yield return(new WaitForSeconds(this.damageSpan));

        this.isAttacking = false;
    }
Exemplo n.º 4
0
 //範囲内に何かが入ると動く
 private void OnTriggerEnter(Collider other)
 {
     //プレイヤータグの場合はダメージを与えて消す
     if (other.tag == "Player")
     {
         int damage = MobBase.calcDamage(minAtk, maxAtk);
         hpapi.Damage(damage);
         Destroy(wepon);
     }
 }
Exemplo n.º 5
0
 //範囲内に何かが入ると動く
 private void OnTriggerEnter(Collider other)
 {
     //プレイヤータグの場合はダメージを与えて消す
     if (other.tag == "Player")
     {
         int damage = MobBase.calcDamage(minAtk, maxAtk);
         hpapi.Damage(damage);
         this.transform.parent = null;
         Destroy(this.transform.root.gameObject);
         boss.CoolOn();
     }
 }
Exemplo n.º 6
0
Arquivo: Mob_A.cs Projeto: Pmang/TRGR
    //アニメーションイベントで使用する
    void Attack1()
    {
        int damage = MobBase.calcDamage(minAtk, maxAtk);

        hpapi.Damage(damage);
    }