コード例 #1
0
	public override void PowerActionEnter (GameObject player, Controller2D controller)
	{
		if (Analytics.Enabled) {
			GA.API.Design.NewEvent ("BlackHole Deaths", player.transform.position);
		}
		controller.Die();
	}
コード例 #2
0
	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
0
	public override void PowerActionEnter(GameObject player, Controller2D controller)
    {
        if(Analytics.Enabled){
			GA.API.Design.NewEvent("Explosion Death", transform.position);
		}

        controller.Die(DeathType.EXPLOSION);
	
	}
コード例 #4
0
	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
0
	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
0
	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
0
    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
0
	public override void PowerActionStay (GameObject player, Controller2D controller)
	{	
		controller.Die();
	}
コード例 #9
0
	public override void PowerActionEnter (GameObject player, Controller2D controller)
	{
		controller.Die(DeathType.FIRE);
	}
コード例 #10
0
    public override void PowerActionStay(GameObject player, Controller2D controller)
    {
    
		controller.Die(DeathType.PLAGUE);
    }