public override bool collide(cCritter pCritter) { if (contains(pCritter)) //disk of pcritter is wholly inside my disk { pCritter.addHealth(-1); pCritter.moveTo(new cVector3(_movebox.Midx, _movebox.Loy + 1.0f, _movebox.Hiz - 3.0f)); return(true); } else { return(false); } }
public override bool collide(cCritter pcritter) { if (contains(pcritter)) //disk of pcritter is wholly inside my disk { Framework.snd.play(Sound.Clap); pcritter.addScore(100); pcritter.addHealth(1); pcritter.moveTo(new cVector3(_movebox.Midx, _movebox.Loy + 1.0f, _movebox.Hiz - 3.0f)); return(true); } else { return(false); } }