private void DeadFeedback() { Vector2 middleOfGrid = new Vector2(); middleOfGrid.X = myGridContainer.GetInitialWidth() / 2 * AbstractBlock.GetTileSize(); middleOfGrid.Y = myGridContainer.GetInitialHeight() / 2 * AbstractBlock.GetTileSize(); SpriteFeedback losar = new SpriteFeedback("losar", myOffset + middleOfGrid, () => { return(myIsDead == false); }); FeedbackManager.AddFeedback(losar); }
public virtual void DebugDied(int aPlayerIndex) { if (aPlayerIndex != myPlayerInfo.myPlayerIndex) { return; } Vector2 smallOffset = new Vector2(); smallOffset.X = myGridBundle.Container.GetInitialWidth() / 3 * AbstractBlock.GetTileSize(); smallOffset.Y = myGridBundle.Container.GetInitialHeight() / 3 * AbstractBlock.GetTileSize(); SpriteFeedback losar = new SpriteFeedback("fantastiskt", myGridBundle.Behavior.GetOffset() + smallOffset, () => { return(myGridBundle.Behavior.myIsDead == false); }); FeedbackManager.AddFeedback(losar); }