Example #1
0
        private void OnObjectPlacedInSeasonFinishedEvent(ObjectPlacedInSeasonFinishedEvent evt)
        {
            InteractionEvent ievt = new InteractionEvent();

            ievt.location     = evt.seasonName;
            ievt.sourceObject = evt.placedObject;
            ievt.kind         = InteractionKind.Drop;
            this.UpdateTasks(ievt, false);
        }
 void OnObjectPlacedInSeason(ObjectPlacedInSeasonFinishedEvent evt) {
     if(evt.placedObject.GetInstanceID() == this.gameObject.GetInstanceID()) {
         this.currentSeason = evt.seasonName;
     }
 }