public override void onCollide(AnimatedObject _CollideWith)
 {
     base.onCollide(_CollideWith);
     if (this.onlyFromPlayerTakeAble)
     {
         if (_CollideWith is PlayerObject)
         {
             ((PlayerObject)_CollideWith).addItemObjectToInventory(this);
         }
     }
     else
     {
         if (_CollideWith is CreatureObject)
         {
             ((CreatureObject)_CollideWith).addItemObjectToInventory(this);
         }
     }
 }
Beispiel #2
0
 public virtual void onCollide(AnimatedObject _CollideWith)
 {
 }