Example #1
0
        /// <summary>
        /// Fires a burst if
        /// </summary>
        /// <param name="_target">Target.</param>
        /// <param name="_limit">Limit.</param>
        public void FireBurst(Transform _target, int _limit)
        {
            m_TargetTransform = _target;

            if (TargetEntityComponent != null && EntityComponent != null)
            {
                TargetEntityComponent.AddActiveCounterpart(EntityComponent.RootEntity as ICECreatureEntity);
            }

            if (Automatic.Enabled)
            {
                Automatic.StartWithImpulsLimit(_limit);
            }
            else
            {
                FireOneShot(_target);
            }
        }
Example #2
0
        public void Fire(Transform _target, bool _reset)
        {
            //Debug.Log( "TEST: Fire" );

            m_TargetTransform = _target;

            if (TargetEntityComponent != null && EntityComponent != null)
            {
                TargetEntityComponent.AddActiveCounterpart(EntityComponent.RootEntity as ICECreatureEntity);
            }

            if (Automatic.Enabled)
            {
                Automatic.Start(_reset);
            }
            else
            {
                FireOneShot(_target);
            }
        }