Aura.Channel.World.Dungeons.Props.Fountain.DefaultBehavior C# (CSharp) Метод

DefaultBehavior() защищенный Метод

Fountain's default behavior, checking state, who and how many times they used the fountain, and calling Touch.
protected DefaultBehavior ( Creature creature, Prop prop ) : void
creature Aura.Channel.World.Entities.Creature
prop Aura.Channel.World.Entities.Prop
Результат void
		protected virtual void DefaultBehavior(Creature creature, Prop prop)
		{
			if (!this.IsOn)
				return;

			lock (_touchedBy)
			{
				if (_touchedBy.Contains(creature.EntityId))
					return;
				_touchedBy.Add(creature.EntityId);
			}

			this.Touch(creature);

			Interlocked.Increment(ref count);
			if (count >= MaxTouch)
				this.TurnOff();
		}