protected override void Telegraph() { Vector2 pummelerPosition = rbody.position; Vector2 playerPosition = PlayerCharacter.instance.transform.position; GlobalProjectile.InstantiateProjectile(telegraphPrefab, pummelerPosition, playerPosition, telegraphSpeed); }
protected override void Telegraph() { telegraphProjectiles = new List <GameObject>(); Vector2 pummelerPosition = rbody.position; for (int i = 0; i < telegraphTargets.Count; i++) { telegraphProjectiles.Add(GlobalProjectile.InstantiateProjectile(telegraphPrefab, pummelerPosition, telegraphTargets[i].position, telegraphSpeed)); } }
public virtual void ShootProjectile() { GameObject proj = GlobalProjectile.InstantiateProjectile ( projectilePrefab, transform.position, PlayerCharacter.instance.transform.position, projectileSpeed ); proj.GetComponent <EnemyBulletDamageSource>().Setup(this); }