private void Shoot() { if (projectile == null) { Debug.LogError("UIProjectile is null", this); return; } RealProjectile _projectile = Instantiate(projectile).GetComponent <RealProjectile>(); _projectile.Init(transform.position, direction, type, 0.1f); }
public void OnProjectileHit(RealProjectile _realProjectile) { if (onPlayerProjecileHit != null) { if (_realProjectile == null) { return; } onPlayerProjecileHit.Invoke(_realProjectile, receptionDirection); } }
void PlayerHit(RealProjectile _realProjectile, CARDINAL _receptionDir) { Debug.Log(_receptionDir); UIController.instance.ShootInUI(_receptionDir, _realProjectile.type); }