示例#1
0
    void Shoot()
    {
        Dictionary <string, object> data = new Dictionary <string, object>();

        data.Add("Damage", Attack);
        data.Add("ShootPos", transform.position);
        data.Add("Force", GetForce());
        data.Add("AmmoBounceTimes", AmmoBounceTimes);
        data.Add("AmmoBounceDamage", AmmoBounceDamage);
        data.Add("DragProportion", GetDragProportion());
        MyAmmoSpawner.Spawn(data);
        Target.LaunchAmmo();
        SetCanShoot(false);
        BattleCanvas.PlayerReleaseBow();
    }