9 public override Trait.TileMode tileMode
13 if (!this.UseAltTiles)
15 return Trait.TileMode.Default;
17 return Trait.TileMode.DefaultNoAnime;
23 public override bool UseAltTiles
27 return !this.swinging;
32 public override void OnStepped(
Chara c)
34 this.owner.isOn =
true;
35 this.swinging =
false;
39 public override void OnSteppedOut(
Chara c)
41 bool isOn = this.owner.isOn;
42 this.owner.isOn = this.owner.pos.HasChara;
43 if (isOn && !this.owner.isOn)
45 if (this.tween !=
null)
47 this.tween.Kill(
false);
50 this.owner.PlaySound(
"swing", 1f,
true);
51 this.tween = TweenUtil.Tween(5f,
null,
null).OnComplete(delegate
53 this.swinging =
false;
56 this.swinging =
false;