Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void SetController(ProjectileController projectileController)
 {
     _projectileController = projectileController;
 }