public void inProximity(object source, ProximityEvent args) { if (args.Entity == this) { if (use == true) { Pickup(); } } }
public void inProximity(object source, ProximityEvent args) { if (args.Entity == this) { if (use == true) { mCollected = true; Destroy(); use = false; } } }
public void inProximity(object source, ProximityEvent args) { if (args.Entity == this) { if (Hide) { CollisionManager.getInstance.currPlayer.Visible = false; Hide = false; if (TriggerDialouge == true) { if (!runonce) { Script.getInstance.BeginDialogue(Lines); runonce = true; } } } } }
public virtual void inProximity(hasProximity entity) { ProximityEvent args = new ProximityEvent(entity); Proximity(this, args); }