Beispiel #1
0
        public override void OnThink()
        {
            if (DateTime.UtcNow >= m_NextAbilityTime)
            {
                ThrowingDaggerSE dagger = new ThrowingDaggerSE(this);

                dagger.ThrowIt();

                m_NextAbilityTime = DateTime.UtcNow + TimeSpan.FromSeconds(Utility.RandomMinMax(m_MinTime, m_MaxTime));
            }

            base.OnThink();
        }
Beispiel #2
0
        public override void OnThink()
        {
            if ( DateTime.Now >= m_NextAbilityTime )
            {
                ThrowingDaggerSE dagger = new ThrowingDaggerSE( this );

                dagger.ThrowIt();

                m_NextAbilityTime = DateTime.Now + TimeSpan.FromSeconds( Utility.RandomMinMax( m_MinTime, m_MaxTime ) );
            }

            base.OnThink();
        }