当前位置: 首页>>代码示例>>C#>>正文


C# Controller2D.Die方法代码示例

本文整理汇总了C#中Controller2D.Die方法的典型用法代码示例。如果您正苦于以下问题:C# Controller2D.Die方法的具体用法?C# Controller2D.Die怎么用?C# Controller2D.Die使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Controller2D的用法示例。


在下文中一共展示了Controller2D.Die方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PowerActionEnter

	public override void PowerActionEnter (GameObject player, Controller2D controller)
	{
		if (Analytics.Enabled) {
			GA.API.Design.NewEvent ("BlackHole Deaths", player.transform.position);
		}
		controller.Die();
	}
开发者ID:RobbSteel,项目名称:Lords-of-Distortion,代码行数:7,代码来源:BlackHoleCenter.cs

示例2: PowerActionEnter

	public override void PowerActionEnter(GameObject player, Controller2D controller){

		if(Analytics.Enabled){
			GA.API.Design.NewEvent("Spike Death", player.transform.position);
		}
		
		controller.Die(DeathType.RIPPED);
	}
开发者ID:RobbSteel,项目名称:Lords-of-Distortion,代码行数:8,代码来源:SpikeTrap.cs

示例3: PowerActionEnter

	public override void PowerActionEnter(GameObject player, Controller2D controller)
    {
        if(Analytics.Enabled){
			GA.API.Design.NewEvent("Explosion Death", transform.position);
		}

        controller.Die(DeathType.EXPLOSION);
	
	}
开发者ID:RobbSteel,项目名称:Lords-of-Distortion,代码行数:9,代码来源:BlastRadius.cs

示例4: PowerActionEnter

	public override void PowerActionEnter (GameObject player, Controller2D controller)
	{
		if (Analytics.Enabled) {
			GA.API.Design.NewEvent ("Earthquake Crushes", player.transform.position);
		}

		if(risetime <= 0){
		controller.Die ();
		}
	}
开发者ID:RobbSteel,项目名称:Lords-of-Distortion,代码行数:10,代码来源:Earthquake.cs

示例5: PowerActionEnter

	public override void PowerActionEnter (GameObject player, Controller2D controller)
	{

		if (Analytics.Enabled) {
			GA.API.Design.NewEvent ("Electricity Kills", player.transform.position);
		}


        controller.Die(DeathType.FIRE);
	}
开发者ID:RobbSteel,项目名称:Lords-of-Distortion,代码行数:10,代码来源:ElectricShot.cs

示例6: PowerActionEnter

	public override void PowerActionEnter (GameObject player, Controller2D controller)
	{
		if(gameObject.GetComponent<HookHit>().shooter != player){
			var invulncheck = player.GetComponent<Controller2D>();
			if(!invulncheck.powerInvulnerable){
				if (Analytics.Enabled) {
					GA.API.Design.NewEvent ("Empowered Hook Kills", player.transform.position);
				}
			controller.Die(DeathType.FIRE);
			}
		}
	}
开发者ID:RobbSteel,项目名称:Lords-of-Distortion,代码行数:12,代码来源:PowerHook.cs

示例7: PowerActionEnter

    public override void PowerActionEnter (GameObject player, Controller2D controller)
	{
		if(Analytics.Enabled){
			GA.API.Design.NewEvent("Fireball Death", player.transform.position);
		}

		Instantiate(fireparticle, transform.position, transform.rotation);

		if(!OFFLINE)
			networkView.RPC("FireExplosion", RPCMode.Others);

		controller.Die(DeathType.FIRE);
		Destroy(gameObject);
	}
开发者ID:RobbSteel,项目名称:Lords-of-Distortion,代码行数:14,代码来源:FireBall.cs

示例8: PowerActionStay

	public override void PowerActionStay (GameObject player, Controller2D controller)
	{	
		controller.Die();
	}
开发者ID:RobbSteel,项目名称:Lords-of-Distortion,代码行数:4,代码来源:BlackHoleCenter.cs

示例9: PowerActionEnter

	public override void PowerActionEnter (GameObject player, Controller2D controller)
	{
		controller.Die(DeathType.FIRE);
	}
开发者ID:RobbSteel,项目名称:Lords-of-Distortion,代码行数:4,代码来源:StageFireball.cs

示例10: PowerActionStay

    public override void PowerActionStay(GameObject player, Controller2D controller)
    {
    
		controller.Die(DeathType.PLAGUE);
    }
开发者ID:RobbSteel,项目名称:Lords-of-Distortion,代码行数:5,代码来源:PlagueScript.cs


注:本文中的Controller2D.Die方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。