Example #1
0
 void OnGrabDone(PlayerGrabber grabber)
 {
     grabber.Retract(true);
 }
Example #2
0
    void OnGrabDone(PlayerGrabber grabber)
    {
        if(grabber.thePlayer.action == Entity.Action.die) {
        }
        else {
            grabber.thePlayer.stats.ApplyDamage(-1);
        }

        grabber.Retract(true);
    }
    //void OnGrabStart(PlayerGrabber grabber) {
    //}
    protected virtual void OnGrabDone(PlayerGrabber grabber)
    {
        planetAttach.enabled = false;
        grabber.Retract(true);

        action = Entity.Action.grabbed;
    }
Example #4
0
    void OnGrabDone(PlayerGrabber grabber)
    {
        Vector3 pos = transform.localPosition;
        pos.z = 0.0f;
        transform.localPosition = pos;

        starSprite.scale = new Vector3(grabScale, grabScale, starSprite.scale.z);

        glowSprite.scale = new Vector3(grabScale, grabScale, glowSprite.scale.z);

        grabber.Retract(true);
    }