private void reactionToMissile(Missile m, Wall w, Vector2 _point) { //Vector2 pos = m.physicsObj.body.GetWorldPoint(_man.LocalPoint); Vector2 pos = _point; GameObjManager.Instance().addExplosion(pos, m.spriteRef.color); GameObjManager.Instance().remove(batchEnum.missiles, m); PlayerManager.Instance().getPlayer(m.owner).increaseNumMissiles(); playMissileHitSound(); w.hit(); }
public override void VisitWall(Wall w, Vector2 _point) { w.hit(); }
public override void VisitWall(Wall w, Vector2 _point) { w.hit(); }
private void reactionToMissile(Missile m, Wall w, Vector2 _point) { //Vector2 pos = m.physicsObj.body.GetWorldPoint(_man.LocalPoint); Vector2 pos = _point; GameObjManager.Instance().addExplosion(pos, m.spriteRef.color); GameObjManager.Instance().remove(batchEnum.missiles, m); PlayerManager.Instance().getPlayer(m.owner).increaseNumMissiles(); playMissileHitSound(); w.hit(); }