本文整理汇总了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();
}
示例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);
}
示例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);
}
示例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 ();
}
}
示例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);
}
示例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);
}
}
}
示例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);
}
示例8: PowerActionStay
public override void PowerActionStay (GameObject player, Controller2D controller)
{
controller.Die();
}
示例9: PowerActionEnter
public override void PowerActionEnter (GameObject player, Controller2D controller)
{
controller.Die(DeathType.FIRE);
}
示例10: PowerActionStay
public override void PowerActionStay(GameObject player, Controller2D controller)
{
controller.Die(DeathType.PLAGUE);
}