示例#1
0
 private void OnValidate()
 {
     if (cost == 0)
     {
         _type = TeleporterType.Free;
     }
 }
        // pickup shorthands for fun and profit

        public static Teleporter p(this TeleporterType tp) => new Teleporter(tp);
 public RemoveTeleporter(TeleporterType ability) => type = ability;
 public Teleporter(TeleporterType _type)
 {
     type = _type;
 }
 public Teleporter(TeleporterType teleporter) => type = teleporter;