Esempio n. 1
0
    public void Drop(HLG_Player o)
    {
        owner = o;

        explosionTimer = explosionDelay;

        Rigidbody myRigidbody = GetComponent <Rigidbody> ();

        myRigidbody.AddForce(Vector3.up * 700.0f);

        float torque = Random.Range(-100.0f, 100.0f);

        myRigidbody.AddTorque(new Vector3(0.0f, 0.0f, torque));
    }
    public void Drop(HLG_Player o)
    {
        owner = o;

        explosionTimer = explosionDelay;
    }