void OnGrabDone(PlayerGrabber grabber) { grabber.Retract(true); }
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; }
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); }