コード例 #1
0
ファイル: Teleporter.cs プロジェクト: Skuuully/Gravity
 private void OnValidate()
 {
     if (cost == 0)
     {
         _type = TeleporterType.Free;
     }
 }
コード例 #2
0
        // pickup shorthands for fun and profit

        public static Teleporter p(this TeleporterType tp) => new Teleporter(tp);
コード例 #3
0
 public RemoveTeleporter(TeleporterType ability) => type = ability;
コード例 #4
0
 public Teleporter(TeleporterType _type)
 {
     type = _type;
 }
コード例 #5
0
 public Teleporter(TeleporterType teleporter) => type = teleporter;