Пример #1
0
        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);
        }
Пример #2
0
 public void OnProjectileHit(RealProjectile _realProjectile)
 {
     if (onPlayerProjecileHit != null)
     {
         if (_realProjectile == null)
         {
             return;
         }
         onPlayerProjecileHit.Invoke(_realProjectile, receptionDirection);
     }
 }
Пример #3
0
 void PlayerHit(RealProjectile _realProjectile, CARDINAL _receptionDir)
 {
     Debug.Log(_receptionDir);
     UIController.instance.ShootInUI(_receptionDir, _realProjectile.type);
 }