コード例 #1
0
    protected override void DoShoot(DungeonControl2 dungeon, Vector3 from, Vector3 to)
    {
        weaponBody.transform.position = to;
        dungeon.Attack(brush);

        Instantiate(hitPS.gameObject, to, Quaternion.identity);
    }
コード例 #2
0
 protected override void DoShoot(DungeonControl2 dungeon, Vector3 from, Vector3 to)
 {
     this.weaponBody.get_transform().set_position(from);
     this.weaponBody.get_transform().LookAt(to, Vector3.get_up());
     dungeon.Attack(this.brush);
     Object.Instantiate <GameObject>((M0)((Component)this.hitPS).get_gameObject(), to, Quaternion.get_identity());
     Object.Instantiate <GameObject>((M0)((Component)this.shootPS).get_gameObject(), this.weaponBody.get_transform().get_position(), this.weaponBody.get_transform().get_rotation());
 }