Ejemplo n.º 1
0
        public virtual void Initialize(E_BulletType bulletType, BaseEntity target, float pDamage, float splashRange,
                                       bool pIsMine, bool pIsBottomPlayer, float effect)
        {
            obj_Bullet.SetActive(true);
            if (obj_EndEffect != null)
            {
                obj_EndEffect.SetActive(false);
            }

            _bulletType     = bulletType;
            _isTarget       = true;
            _damage         = pDamage;
            _splashRange    = splashRange;
            _isMine         = pIsMine;
            _isBottomPlayer = pIsBottomPlayer;
            _target         = target;
            _effect         = effect;

            if (_target)
            {
                SetColor();
                StartCoroutine(Move());
            }
            else
            {
                _poad.Deactive();
            }
        }
Ejemplo n.º 2
0
 public virtual void OnBaseEntityDestroyed()
 {
     StopAllAction();
     _poolObjectAutoDeactivate?.Deactive();
     ActorProxy = null;
 }
Ejemplo n.º 3
0
 public void Deactive()
 {
     poad.Deactive();
 }