示例#1
0
 private bool onNewDecorationAdded(IglooUIEvents.AddNewDecoration evt)
 {
     if (!DefinitionsIDsList.Contains(evt.Definition.Id))
     {
         EnforceMaxListSize();
         DefinitionsIDsList.Insert(0, evt.Definition.Id);
     }
     return(false);
 }
示例#2
0
 private bool onAddNewDecoration(IglooUIEvents.AddNewDecoration evt)
 {
     if (ClubPenguin.Core.SceneRefs.IsSet <SceneManipulationService>())
     {
         DecorationLayoutData data = default(DecorationLayoutData);
         data.DefinitionId = evt.Definition.Id;
         data.Type         = DecorationLayoutData.DefinitionType.Decoration;
         ClubPenguin.Core.SceneRefs.Get <SceneManipulationService>().AddNewObject(evt.Definition.Prefab, evt.FinalTouchPoint, data);
     }
     return(false);
 }