Example #1
0
 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);
         }
     }
 }
Example #2
0
 public virtual void onCollide(AnimatedObject _CollideWith)
 {
 }