summaryrefslogtreecommitdiff
path: root/GameCode/ProjectileHitEmpower.cs
blob: 3672ce11331e19cb5644f52a4c78650bb4f42249 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
using UnityEngine;

public class ProjectileHitEmpower : RayHitEffect
{
	private bool done;

	public override HasToReturn DoHitEffect(HitInfo hit)
	{
		if (done)
		{
			return HasToReturn.canContinue;
		}
		GetComponentInParent<SpawnedAttack>().spawner.data.block.DoBlockAtPosition(firstBlock: true, dontSetCD: true, BlockTrigger.BlockTriggerType.Empower, hit.point - (Vector2)base.transform.forward * 0.05f, onlyBlockEffects: true);
		done = true;
		return HasToReturn.canContinue;
	}
}