Пример #1
0
 public bool beConsumed(Creature consumer)
 {
     if (consumeable && !available)
     {
         Debug.Log("Destroying - " + gameObject.name);
         DestroyThisThing();
         MemoryInstance eating   = new MemoryInstance(Verb.ATE, this, false);
         MemoryInstance itemGone = new MemoryInstance(Verb.SAW, this, true);
         consumer.AddMemory(eating);
         consumer.AddMemory(itemGone);
         return(true);
     }
     else
     {
         Debug.Log(thingName + " not claimed or not consumeable");
     }
     return(false);
 }