public void SpawnProjectile(float force, float angle, Vector2 spawnPos, bool player) { Vector2 direction = new Vector2((float)Mathf.Cos(angle * Mathf.Deg2Rad), Mathf.Sin(angle * Mathf.Deg2Rad)); _projectileController = new ProjectileController(this, force, direction, spawnPos, _signalBus, player); }
public void SetController(ProjectileController projectileController) { _projectileController = projectileController; }