示例#1
0
 public override void Set(TileObjectDefintion def)
 {
     base.Set(def);
     if (def.GetType() == typeof(TeleportDefinition))
     {
         TeleportDefinition newDef = (TeleportDefinition)def;
         _def.teleportCycleIdx = newDef.teleportCycleIdx;
     }
     Refresh();
 }
示例#2
0
 public override void Set(TileObjectDefintion def)
 {
     base.Set(def);
     if (def.GetType() == typeof(ExitDefinition))
     {
         ExitDefinition newDef = (ExitDefinition)def;
         _exitDef.color = newDef.color;
     }
     Refresh();
 }
示例#3
0
 public override void Set(TileObjectDefintion def)
 {
     base.Set(def);
     if (def.GetType() == typeof(SpikesDefintion))
     {
         SpikesDefintion newSpikesDef = (SpikesDefintion)def;
         spikesDef.isRaised = newSpikesDef.isRaised;
     }
     Refresh();
 }