Exemplo n.º 1
0
    // Triggered when machine overloads
    public virtual void Overload(float UpForce)
    {
        var force = transform.forward + Vector3.up * UpForce;

        obj.Throw(force * 15f, null);
        obj.Destroy(1.5f);
        obj = null;
    }