本文整理汇总了C#中Map.AddPlayersPoints方法的典型用法代码示例。如果您正苦于以下问题:C# Map.AddPlayersPoints方法的具体用法?C# Map.AddPlayersPoints怎么用?C# Map.AddPlayersPoints使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Map
的用法示例。
在下文中一共展示了Map.AddPlayersPoints方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnDestroy
/// <summary>
/// Reakcja na wejście Vandala
/// </summary>
/// <param name="map"></param>
public void OnDestroy(Map.Map map)
{
map.AddPlayersPoints(points);
if (!deactivated)
{
deactivated = true;
asset_name = "Textures\\deactivated_goal";
texture = content.Load<Texture2D>(asset_name);
}
else
map.vandal.level_up = true;
}
示例2: OnDestroy
/// <summary>
/// Reakcja na zniszczenie obiektu (zastąpienie pustym polem)
/// </summary>
/// <param name="map">Mapa obiektów</param>
public void OnDestroy(Map.Map map)
{
map.AddPlayersPoints(points);
map.setObject(x, y, new NonDestroyableObjects.Puste(content, this.Rectangle,x,y));
}
示例3: Die
/// <summary>
/// Reakcja na zabicie, po smierci upuszcza dynamit
/// </summary>
public override void Die(Map.Map map)
{
map.AddPlayersPoints(points);
map.setObject(x, y, new Weapon.Dynamit(content, this.rectangle, this.x, this.y));
}
示例4: OnDestroy
/// <summary>
/// Obsługa zniszczenia obiektu
/// </summary>
/// <param name="map"></param>
public void OnDestroy(Map.Map map)
{
map.AddPlayersPoints(points);
map.setObject(rectangle.X / rectangle.Width, rectangle.Y / rectangle.Height, new NonDestroyableObjects.Puste(content, this.Rectangle, rectangle.X / rectangle.Width, rectangle.Y / rectangle.Height));
}
示例5: OnDestroy
public void OnDestroy(Map.Map map)
{
map.AddPlayersPoints(points);
}
示例6: OnDestroy
public void OnDestroy(Map.Map map)
{
map.AddPlayersPoints(points);
//map.UpgradePlayersLevel();
map.vandal.level_up = true;
}
示例7: Die
/// <summary>
/// Reakcja na zabicie
/// Zostawia na swoim miejscu pole ameby
/// </summary>
/// <param name="map"></param>
public override void Die(Map.Map map)
{
map.AddPlayersPoints(points);
map.setObject(x, y, new DestroyableObjects.Ameba(content, this.rectangle, this.x, this.y));
}
示例8: FireBomb
/// <summary>
/// Reakcja na napotkanie innego obiektu - wybuch
/// </summary>
/// <param name="map"></param>
public void FireBomb(Map.Map map)
{
explode = true;
map.AddPlayersPoints(points);
texture = content.Load<Texture2D>(explosion_animation);
}
示例9: Die
/// <summary>
/// Reakcja na pokonanie
/// </summary>
/// <param name="map">mapa obiektów</param>
public override void Die(Map.Map map)
{
map.AddPlayersPoints(points);
FireBomb(map);
}