public void FirePing() { switch(m_Oldest) { case 0: m_PingDistances.X = 0; m_Oldest = 1; break; case 1: m_PingDistances.Y = 0; m_Oldest = 2; break; case 2: m_PingDistances.Z = 0; m_Oldest = 3; break; case 3: m_PingDistances.W = 0; m_Oldest = 0; break; } m_HeartBeat.Play(); var newPing = new Ping(scene); }
public void FirePing() { m_HeartBeat.Play(); var newPing = new Ping(scene); scene.Entities.Add(newPing); }
public bool CollidesWith(Ping pPing) { float distanceFromCentre = (m_Sprite.Position - DirtyGlobalHelpers.CentreOfScreen()).Length() - pPing.GetPingRadius(); return (distanceFromCentre > -5 && distanceFromCentre < 5); }